From baeb59d89beda499688e528c6a269d2b255b66f2 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 17 Mar 2014 10:03:47 +0100 Subject: avconv: rewrite output data size tracking Store a variable per OutputStream instead of globals for audio/video/extradata. This makes the code simpler and cleaner and fixes 2pass with multiple output streams. --- avconv.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'avconv.h') diff --git a/avconv.h b/avconv.h index 19284324a0..29f7dd99fc 100644 --- a/avconv.h +++ b/avconv.h @@ -339,6 +339,10 @@ typedef struct OutputStream { enum AVPixelFormat pix_fmts[2]; AVCodecParserContext *parser; + + /* stats */ + // combined size of all the packets written + uint64_t data_size; } OutputStream; typedef struct OutputFile { -- cgit v1.2.3