diff options
author | Diego Biurrun <diego@biurrun.de> | 2012-04-11 10:31:02 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2012-05-10 00:01:45 +0200 |
commit | 7cf78b3476d77888caa059398078640fb821170e (patch) | |
tree | 10aa6a6152610d83e0180a357ce7e6533f8da2a5 | |
parent | ded69c5e21758e2e4a9a7e6ae0fec2d5ad312ba9 (diff) | |
download | ffmpeg-7cf78b3476d77888caa059398078640fb821170e.tar.gz |
cmdutils: Add fallback case to switch in check_stream_specifier().
This fixes the warning:
cmdutils.c:897: warning: ‘type’ may be used uninitialized in this function
-rw-r--r-- | cmdutils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmdutils.c b/cmdutils.c index 3cd11ca241..bd07d2ad89 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -34,6 +34,7 @@ #include "libavdevice/avdevice.h" #include "libavresample/avresample.h" #include "libswscale/swscale.h" +#include "libavutil/avassert.h" #include "libavutil/avstring.h" #include "libavutil/mathematics.h" #include "libavutil/parseutils.h" @@ -905,6 +906,7 @@ int check_stream_specifier(AVFormatContext *s, AVStream *st, const char *spec) case 's': type = AVMEDIA_TYPE_SUBTITLE; break; case 'd': type = AVMEDIA_TYPE_DATA; break; case 't': type = AVMEDIA_TYPE_ATTACHMENT; break; + default: av_assert0(0); } if (type != st->codec->codec_type) return 0; |