Mercurial > mplayer.hg
comparison libmpdemux/demuxer.c @ 30385:b2c5e608155a
Add support for parsing MLP and TrueHD.
author | reimar |
---|---|
date | Sun, 24 Jan 2010 20:05:28 +0000 |
parents | 8a2219bf8ac7 |
children | 5fe2615e5db7 |
comparison
equal
deleted
inserted
replaced
30384:dcebebdd0c0b | 30385:b2c5e608155a |
---|---|
456 break; | 456 break; |
457 case 0x2001: | 457 case 0x2001: |
458 case 0x86: | 458 case 0x86: |
459 codec_id = CODEC_ID_DTS; | 459 codec_id = CODEC_ID_DTS; |
460 break; | 460 break; |
461 case MKTAG('M', 'L', 'P', ' '): | |
462 codec_id = CODEC_ID_MLP; | |
463 break; | |
461 case 0x55: | 464 case 0x55: |
462 case 0x5500736d: | 465 case 0x5500736d: |
463 case MKTAG('.', 'm', 'p', '3'): | 466 case MKTAG('.', 'm', 'p', '3'): |
464 case MKTAG('M', 'P', 'E', ' '): | 467 case MKTAG('M', 'P', 'E', ' '): |
465 case MKTAG('L', 'A', 'M', 'E'): | 468 case MKTAG('L', 'A', 'M', 'E'): |
467 break; | 470 break; |
468 case 0x50: | 471 case 0x50: |
469 case MKTAG('.', 'm', 'p', '2'): | 472 case MKTAG('.', 'm', 'p', '2'): |
470 case MKTAG('.', 'm', 'p', '1'): | 473 case MKTAG('.', 'm', 'p', '1'): |
471 codec_id = CODEC_ID_MP2; | 474 codec_id = CODEC_ID_MP2; |
475 break; | |
476 case MKTAG('T', 'R', 'H', 'D'): | |
477 codec_id = CODEC_ID_TRUEHD; | |
472 break; | 478 break; |
473 } | 479 } |
474 if (codec_id != CODEC_ID_NONE) { | 480 if (codec_id != CODEC_ID_NONE) { |
475 *avctx = avcodec_alloc_context(); | 481 *avctx = avcodec_alloc_context(); |
476 if (!*avctx) | 482 if (!*avctx) |