aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2011-01-11 21:16:00 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2011-01-11 21:16:00 +0000
commit4618637aca3b771b0bfb8fe15f3a080dacf9f0c0 (patch)
treed0fee77d6db0806ce7e4631d24920f8c907070ac
parentc961fb3cbbf3085400b083d161c334dfc5dc2f7d (diff)
downloadffmpeg-4618637aca3b771b0bfb8fe15f3a080dacf9f0c0.tar.gz
Fix warnings:
ffmpeg.c: In function ‘new_video_stream’: ffmpeg.c:3701:18: warning: ‘codec_id’ may be used uninitialized in this function ffmpeg.c: In function ‘new_audio_stream’: ffmpeg.c:3848:18: warning: ‘codec_id’ may be used uninitialized in this function ffmpeg.c: In function ‘new_subtitle_stream’: ffmpeg.c:3926:18: warning: ‘codec_id’ may be used uninitialized in this function Originally committed as revision 26313 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--ffmpeg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 05972ffb2e..a468f47de7 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3369,7 +3369,7 @@ static void new_video_stream(AVFormatContext *oc, int file_idx)
AVStream *st;
AVOutputStream *ost;
AVCodecContext *video_enc;
- enum CodecID codec_id;
+ enum CodecID codec_id = CODEC_ID_NONE;
AVCodec *codec= NULL;
st = av_new_stream(oc, oc->nb_streams < nb_streamid_map ? streamid_map[oc->nb_streams] : 0);
@@ -3516,7 +3516,7 @@ static void new_audio_stream(AVFormatContext *oc, int file_idx)
AVOutputStream *ost;
AVCodec *codec= NULL;
AVCodecContext *audio_enc;
- enum CodecID codec_id;
+ enum CodecID codec_id = CODEC_ID_NONE;
st = av_new_stream(oc, oc->nb_streams < nb_streamid_map ? streamid_map[oc->nb_streams] : 0);
if (!st) {
@@ -3594,7 +3594,7 @@ static void new_subtitle_stream(AVFormatContext *oc, int file_idx)
AVOutputStream *ost;
AVCodec *codec=NULL;
AVCodecContext *subtitle_enc;
- enum CodecID codec_id;
+ enum CodecID codec_id = CODEC_ID_NONE;
st = av_new_stream(oc, oc->nb_streams < nb_streamid_map ? streamid_map[oc->nb_streams] : 0);
if (!st) {