diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index 4922f0230e0e178789750729dee2c57e4ccf8fdb..db8fc1547af676b256a4ee26cf13bbea47511825 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;