aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-12-24 18:18:03 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-12-24 18:18:03 +0100
commite9c4f36c5282a69b46f63c493cf4fd14293bfa8a (patch)
treec075cf6616ee0c7d99e1cfc950d95551343b10a1 /libavformat/mpeg.c
parent7681b8e9a922b9c1b45d95e2585b716a1caed360 (diff)
downloadffmpeg-e9c4f36c5282a69b46f63c493cf4fd14293bfa8a.tar.gz
lavf/mpeg: suppress warning: lpcm_header_len may be used uninitialized in this function
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mpeg.c')
-rw-r--r--libavformat/mpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index 4922f0230e..db8fc1547a 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;