diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-06-25 13:16:57 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-06-26 19:31:51 +0200 |
commit | 74853ed3f845212f4092e7b7e89dc2262926f4f5 (patch) | |
tree | 20eae81749ef700d07a965ae840e5482972f11c9 | |
parent | 61d158c321a82ec7bfc46ce480997797e8048b85 (diff) | |
download | ffmpeg-74853ed3f845212f4092e7b7e89dc2262926f4f5.tar.gz |
avconv: shut up an uninitialized variable warning.
The warning silenced was:
avconv.c: In function ‘configure_filtergraph’:
avconv.c:603:8: warning: ‘ist’ may be used uninitialized in this function [-Wuninitialized]
avconv.c:549:18: note: ‘ist’ was declared here
-rw-r--r-- | avconv.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -546,7 +546,7 @@ static FilterGraph *init_simple_filtergraph(InputStream *ist, OutputStream *ost) static void init_input_filter(FilterGraph *fg, AVFilterInOut *in) { - InputStream *ist; + InputStream *ist = NULL; enum AVMediaType type = avfilter_pad_get_type(in->filter_ctx->input_pads, in->pad_idx); int i; @@ -598,6 +598,8 @@ static void init_input_filter(FilterGraph *fg, AVFilterInOut *in) exit_program(1); } } + av_assert0(ist); + ist->discard = 0; ist->decoding_needed = 1; ist->st->discard = AVDISCARD_NONE; |