[FFmpeg-cvslog] cmdutils: fix uninitialized variable (type) warning.
Clément Bœsch
git at videolan.org
Thu Sep 1 20:26:44 CEST 2011
ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Thu Sep 1 02:56:59 2011 +0200| [0baf651bc12d256cf71ae94d6219e65c9b0d3e5a] | committer: Clément Bœsch
cmdutils: fix uninitialized variable (type) warning.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0baf651bc12d256cf71ae94d6219e65c9b0d3e5a
---
cmdutils.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/cmdutils.c b/cmdutils.c
index d42a6e8..b89b168 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -805,6 +805,7 @@ int check_stream_specifier(AVFormatContext *s, AVStream *st, const char *spec)
case 'a': type = AVMEDIA_TYPE_AUDIO; break;
case 's': type = AVMEDIA_TYPE_SUBTITLE; break;
case 'd': type = AVMEDIA_TYPE_DATA; break;
+ default: abort(); // never reached, silence warning
}
if (type != st->codec->codec_type)
return 0;
More information about the ffmpeg-cvslog
mailing list