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.
This commit is contained in:
Anton Khirnov
2014-03-17 10:03:47 +01:00
parent f759f66e36
commit baeb59d89b
2 changed files with 27 additions and 23 deletions

View File

@@ -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 {