summaryrefslogtreecommitdiff
path: root/avconv.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2014-03-17 10:03:47 +0100
committerAnton Khirnov <anton@khirnov.net>2014-03-24 06:17:04 +0100
commitbaeb59d89beda499688e528c6a269d2b255b66f2 (patch)
treef0436ace540756c8021c597ee07763af2478dfcd /avconv.h
parentf759f66e367bc62ed7738a51040f775b656a60d8 (diff)
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.
Diffstat (limited to 'avconv.h')
-rw-r--r--avconv.h4
1 files changed, 4 insertions, 0 deletions
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 {