diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-05-23 09:19:25 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-05-30 17:08:56 +0200 |
commit | ac477367bc5ca1a3256991943f50f85dc1419a9e (patch) | |
tree | 9ab0238993e160b2ed8dce19e0251497cdb2775b /avconv.h | |
parent | 3778061a63b27d2783713ee68620e2572dbc776e (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.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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; |