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-06-25 11:12:53 +0200
commit1c169782cae6c5c430ff62e7d7272dc9d0e8d527 (patch)
tree66b57b8d8b17ae46e5baa301492ada54c555b985 /avconv.h
parent5b63b15663d31f50ce45d980b904a68795ad3f7a (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;