[FFmpeg-cvslog] r26313 - trunk/ffmpeg.c
bcoudurier
subversion
Tue Jan 11 22:16:00 CET 2011
Author: bcoudurier
Date: Tue Jan 11 22:16:00 2011
New Revision: 26313
Log:
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
Modified:
trunk/ffmpeg.c
Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c Tue Jan 11 22:14:11 2011 (r26312)
+++ trunk/ffmpeg.c Tue Jan 11 22:16:00 2011 (r26313)
@@ -3369,7 +3369,7 @@ static void new_video_stream(AVFormatCon
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(AVFormatCon
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(AVFormat
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) {
More information about the ffmpeg-cvslog
mailing list