[FFmpeg-cvslog] cmdutils: Add fallback case to switch in check_stream_specifier().
Diego Biurrun
git at videolan.org
Thu May 10 23:33:14 CEST 2012
ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Wed Apr 11 10:31:02 2012 +0200| [7cf78b3476d77888caa059398078640fb821170e] | committer: Diego Biurrun
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
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7cf78b3476d77888caa059398078640fb821170e
---
cmdutils.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/cmdutils.c b/cmdutils.c
index 3cd11ca..bd07d2a 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;
More information about the ffmpeg-cvslog
mailing list