X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fmpeg.c;h=4af2057077ccc85f57d8c255f30810c5bf457096;hb=cf4515ecd985aab899f24a6b7d18432001e670fa;hp=cc2fe7f49588656b5701115e819c269b0f44aaf8;hpb=adc7296aa5b2f1027f55e14b556129b72080f389;p=ffmpeg diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c index cc2fe7f4958..4af2057077c 100644 --- a/libavformat/mpeg.c +++ b/libavformat/mpeg.c @@ -504,7 +504,7 @@ static int mpegps_read_packet(AVFormatContext *s, if(st->discard >= AVDISCARD_ALL) goto skip; if (startcode >= 0xa0 && startcode <= 0xaf) { - if (lpcm_header_len == 6) { + if (lpcm_header_len == 6 && st->codec->codec_id == AV_CODEC_ID_MLP) { if (len < 6) goto skip; avio_skip(s->pb, 6);