mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-20 12:02:23 +02:00
audio: do not run the AC-3 parser on byte-swapped AC-3
Libavcodec has no parser that would work on byte-swapped AC3, but at least don't run the normal AC-3 one which would only break things. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33026 b3059339-0415-0410-9bf9-f77b7e298cf2 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33027 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
4496b90f8b
commit
7a3fd839ef
@ -514,10 +514,13 @@ static void allocate_parser(AVCodecContext **avctx, AVCodecParserContext **parse
|
|||||||
case 0x332D6361:
|
case 0x332D6361:
|
||||||
case 0x332D4341:
|
case 0x332D4341:
|
||||||
case 0x20736D:
|
case 0x20736D:
|
||||||
case MKTAG('d', 'n', 'e', 't'):
|
|
||||||
case MKTAG('s', 'a', 'c', '3'):
|
case MKTAG('s', 'a', 'c', '3'):
|
||||||
codec_id = CODEC_ID_AC3;
|
codec_id = CODEC_ID_AC3;
|
||||||
break;
|
break;
|
||||||
|
case MKTAG('d', 'n', 'e', 't'):
|
||||||
|
// DNET/byte-swapped AC-3 - there is no parser for that yet
|
||||||
|
//codec_id = CODEC_ID_DNET;
|
||||||
|
break;
|
||||||
case MKTAG('E', 'A', 'C', '3'):
|
case MKTAG('E', 'A', 'C', '3'):
|
||||||
codec_id = CODEC_ID_EAC3;
|
codec_id = CODEC_ID_EAC3;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user