]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/mpeg.c
Merge commit '88bd7fdc821aaa0cbcf44cf075c62aaa42121e3f'
[ffmpeg] / libavformat / mpeg.c
index cc2fe7f49588656b5701115e819c269b0f44aaf8..4af2057077ccc85f57d8c255f30810c5bf457096 100644 (file)
@@ -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);