diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-05-22 19:57:36 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-06-21 12:39:02 +0200 |
commit | 73c6ec6d659bab11ac424a4ba6ce3a56246295ee (patch) | |
tree | 79300ca1198423c428a4aad9b69f2e2bfb1fdd87 /avconv_filter.c | |
parent | 49670e4218d34899a1c37abb7a11615efc16f757 (diff) | |
download | ffmpeg-streaming-73c6ec6d659bab11ac424a4ba6ce3a56246295ee.zip ffmpeg-streaming-73c6ec6d659bab11ac424a4ba6ce3a56246295ee.tar.gz |
avconv: create simple filtergraphs earlier
We already have all the necessary information in open_output_file().
This makes the information about the stream/filtergraph mappings
available earlier.
Diffstat (limited to 'avconv_filter.c')
-rw-r--r-- | avconv_filter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/avconv_filter.c b/avconv_filter.c index 1d4aeb0..875ce10 100644 --- a/avconv_filter.c +++ b/avconv_filter.c @@ -76,7 +76,7 @@ DEF_CHOOSE_FORMAT(int, sample_rate, supported_samplerates, 0, DEF_CHOOSE_FORMAT(uint64_t, channel_layout, channel_layouts, 0, GET_CH_LAYOUT_NAME) -FilterGraph *init_simple_filtergraph(InputStream *ist, OutputStream *ost) +int init_simple_filtergraph(InputStream *ist, OutputStream *ost) { FilterGraph *fg = av_mallocz(sizeof(*fg)); @@ -104,7 +104,7 @@ FilterGraph *init_simple_filtergraph(InputStream *ist, OutputStream *ost) GROW_ARRAY(filtergraphs, nb_filtergraphs); filtergraphs[nb_filtergraphs - 1] = fg; - return fg; + return 0; } static void init_input_filter(FilterGraph *fg, AVFilterInOut *in) |