mirror of
https://github.com/mpv-player/mpv
synced 2025-01-05 06:30:06 +00:00
Add support for parsing MLP and TrueHD.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30427 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
61fad6af42
commit
b8b5fe5570
@ -458,6 +458,9 @@ static void allocate_parser(AVCodecContext **avctx, AVCodecParserContext **parse
|
||||
case 0x86:
|
||||
codec_id = CODEC_ID_DTS;
|
||||
break;
|
||||
case MKTAG('M', 'L', 'P', ' '):
|
||||
codec_id = CODEC_ID_MLP;
|
||||
break;
|
||||
case 0x55:
|
||||
case 0x5500736d:
|
||||
case MKTAG('.', 'm', 'p', '3'):
|
||||
@ -470,6 +473,9 @@ static void allocate_parser(AVCodecContext **avctx, AVCodecParserContext **parse
|
||||
case MKTAG('.', 'm', 'p', '1'):
|
||||
codec_id = CODEC_ID_MP2;
|
||||
break;
|
||||
case MKTAG('T', 'R', 'H', 'D'):
|
||||
codec_id = CODEC_ID_TRUEHD;
|
||||
break;
|
||||
}
|
||||
if (codec_id != CODEC_ID_NONE) {
|
||||
*avctx = avcodec_alloc_context();
|
||||
|
Loading…
Reference in New Issue
Block a user