From 9bd305be91fd5f7c3b77998ce7dc53e825ff3a89 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Thu, 20 Aug 2015 12:18:03 +0200 Subject: [PATCH] lavf/mpeg: Allow users to force audio codec MLP. Fixes part of ticket #4786. --- libavformat/mpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c index edb134f740..787d5f0033 100644 --- a/libavformat/mpeg.c +++ b/libavformat/mpeg.c @@ -612,7 +612,7 @@ found: if (st->discard >= AVDISCARD_ALL) goto skip; if (startcode >= 0xa0 && startcode <= 0xaf) { - if (lpcm_header_len == 6 && st->codec->codec_id == AV_CODEC_ID_MLP) { + if (st->codec->codec_id == AV_CODEC_ID_MLP) { if (len < 6) goto skip; avio_skip(s->pb, 6);