diff options
author | Paul B Mahol <onemda@gmail.com> | 2018-03-30 16:06:55 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2018-04-01 20:43:54 +0200 |
commit | 52e97814a18f62e4be7cc5d509ff9025f23ef2be (patch) | |
tree | 7a8b637320e6ac0af891b9c21e9010f1b806d52c /libavformat/mpeg.c | |
parent | 8dff6c2844965473ec37a32c136887efe5e622b9 (diff) | |
download | ffmpeg-52e97814a18f62e4be7cc5d509ff9025f23ef2be.tar.gz |
avformat/mpeg: fix PCM-DVD mis-detection as MLP
Fixes #6563.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat/mpeg.c')
-rw-r--r-- | libavformat/mpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c index abdc6a937c..69d4a9d8ac 100644 --- a/libavformat/mpeg.c +++ b/libavformat/mpeg.c @@ -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; |