Skip to content

Commit

Permalink
lavf/mpeg: suppress warning: lpcm_header_len may be used uninitialize…
Browse files Browse the repository at this point in the history
…d in this function

Signed-off-by: Michael Niedermayer <[email protected]>
  • Loading branch information
michaelni committed Dec 24, 2012
1 parent 7681b8e commit e9c4f36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavformat/mpeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e9c4f36

Please sign in to comment.