From 3f75e5116b900f1428aa13041fc7d6301bf1988a Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Tue, 6 Dec 2016 02:56:24 +0100 Subject: avio: Keep track of the amount of data written Make avio_size() work with any write AVIOContext. --- libavformat/avio.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libavformat/avio.h') diff --git a/libavformat/avio.h b/libavformat/avio.h index 49721aa131..7bf7985c5e 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h @@ -176,6 +176,7 @@ typedef struct AVIOContext { */ enum AVIODataMarkerType current_type; int64_t last_time; + int64_t written; } AVIOContext; /** -- cgit v1.2.3