Browse Source

avformat/mpeg: fix PCM-DVD mis-detection as MLP

Fixes #6563.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n4.0
Paul B Mahol 8 years ago
parent
commit
52e97814a1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/mpeg.c

+ 1
- 1
libavformat/mpeg.c View File

@@ -568,7 +568,7 @@ redo:
codec_id = AV_CODEC_ID_DTS;
} else if (startcode >= 0xa0 && startcode <= 0xaf) {
type = AVMEDIA_TYPE_AUDIO;
if (lpcm_header_len == 6 || startcode == 0xa1) {
if (lpcm_header_len >= 6 && startcode == 0xa1) {
codec_id = AV_CODEC_ID_MLP;
} else {
codec_id = AV_CODEC_ID_PCM_DVD;


Loading…
Cancel
Save