From 4618637aca3b771b0bfb8fe15f3a080dacf9f0c0 Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Tue, 11 Jan 2011 21:16:00 +0000 Subject: =?UTF-8?q?Fix=20warnings:=20ffmpeg.c:=20In=20function=20=E2=80=98?= =?UTF-8?q?new=5Fvideo=5Fstream=E2=80=99:=20ffmpeg.c:3701:18:=20warning:?= =?UTF-8?q?=20=E2=80=98codec=5Fid=E2=80=99=20may=20be=20used=20uninitializ?= =?UTF-8?q?ed=20in=20this=20function=20ffmpeg.c:=20In=20function=20?= =?UTF-8?q?=E2=80=98new=5Faudio=5Fstream=E2=80=99:=20ffmpeg.c:3848:18:=20w?= =?UTF-8?q?arning:=20=E2=80=98codec=5Fid=E2=80=99=20may=20be=20used=20unin?= =?UTF-8?q?itialized=20in=20this=20function=20ffmpeg.c:=20In=20function=20?= =?UTF-8?q?=E2=80=98new=5Fsubtitle=5Fstream=E2=80=99:=20ffmpeg.c:3926:18:?= =?UTF-8?q?=20warning:=20=E2=80=98codec=5Fid=E2=80=99=20may=20be=20used=20?= =?UTF-8?q?uninitialized=20in=20this=20function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Originally committed as revision 26313 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffmpeg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ffmpeg.c') 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) { -- cgit v1.2.3