summaryrefslogtreecommitdiff
path: root/avconv.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-06-25 13:19:51 +0200
committerAnton Khirnov <anton@khirnov.net>2012-06-26 19:32:41 +0200
commitc29c1a1b6bade2b9118c7fa01239c622c2238656 (patch)
tree29227b80c87d82a63c8e978814fff51553ad44d6 /avconv.c
parent74853ed3f845212f4092e7b7e89dc2262926f4f5 (diff)
avconv: add an assert to silence an uninitialized variable warning.
The warning silenced was: avconv.c: In function ‘opt_output_file’: avconv.c:3380:21: warning: ‘meta_out’ may be used uninitialized in this function [-Wuninitialized] avconv.c:3315:20: note: ‘meta_out’ was declared here
Diffstat (limited to 'avconv.c')
-rw-r--r--avconv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/avconv.c b/avconv.c
index 7aacbe0da7..3eb249dcee 100644
--- a/avconv.c
+++ b/avconv.c
@@ -3350,6 +3350,7 @@ static int copy_metadata(char *outspec, char *inspec, AVFormatContext *oc, AVFor
METADATA_CHECK_INDEX(index, context->nb_programs, "program")\
meta = &context->programs[index]->metadata;\
break;\
+ default: av_assert0(0);\
}\
SET_DICT(type_in, meta_in, ic, idx_in);