[FFmpeg-cvslog] lavf/mpeg: suppress warning: lpcm_header_len may be used uninitialized in this function
Michael Niedermayer
git at videolan.org
Mon Dec 24 18:32:59 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Dec 24 18:18:03 2012 +0100| [e9c4f36c5282a69b46f63c493cf4fd14293bfa8a] | committer: Michael Niedermayer
lavf/mpeg: suppress warning: lpcm_header_len may be used uninitialized in this function
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e9c4f36c5282a69b46f63c493cf4fd14293bfa8a
---
libavformat/mpeg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index 4922f02..db8fc15 100644
--- a/libavformat/mpeg.c
+++ b/libavformat/mpeg.c
@@ -382,7 +382,7 @@ static int mpegps_read_packet(AVFormatContext *s,
MpegDemuxContext *m = s->priv_data;
AVStream *st;
int len, startcode, i, es_type, ret;
- int lpcm_header_len;
+ int lpcm_header_len = -1; //Init to supress warning
int request_probe= 0;
enum AVCodecID codec_id = AV_CODEC_ID_NONE;
enum AVMediaType type;
More information about the ffmpeg-cvslog
mailing list