summaryrefslogtreecommitdiff
path: root/avconv.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2016-05-23 09:19:25 +0200
committerAnton Khirnov <anton@khirnov.net>2016-05-30 17:08:56 +0200
commitac477367bc5ca1a3256991943f50f85dc1419a9e (patch)
tree9ab0238993e160b2ed8dce19e0251497cdb2775b /avconv.h
parent3778061a63b27d2783713ee68620e2572dbc776e (diff)
avconv: explicitly postpone writing the header until all streams are initialized
This should have no practical effect for now, but will make a difference in the following commits.
Diffstat (limited to 'avconv.h')
-rw-r--r--avconv.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/avconv.h b/avconv.h
index 78dbbdd5a8..bc3b6c3948 100644
--- a/avconv.h
+++ b/avconv.h
@@ -366,6 +366,12 @@ typedef struct OutputStream {
AVDictionary *resample_opts;
int finished; /* no more packets should be written for this stream */
int stream_copy;
+
+ // init_output_stream() has been called for this stream
+ // The encoder and the bistream filters have been initialized and the stream
+ // parameters are set in the AVStream.
+ int initialized;
+
const char *attachment_filename;
int copy_initial_nonkeyframes;
@@ -396,6 +402,8 @@ typedef struct OutputFile {
uint64_t limit_filesize;
int shortest;
+
+ int header_written;
} OutputFile;
extern InputStream **input_streams;