Commit 52e97814 authored by Paul B Mahol's avatar Paul B Mahol

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

Fixes #6563.
Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 8dff6c28
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment