# HG changeset patch # User reimar # Date 1345318727 0 # Node ID 144d16d56b458e5d2c9b8c896ca17afcb019d953 # Parent b0ca340156a4883815e544a226828791ba4829be TS demuxer: Add support for PCM variant found on BluRay. diff -r b0ca340156a4 -r 144d16d56b45 libmpdemux/demux_ts.c --- a/libmpdemux/demux_ts.c Sat Aug 18 18:45:45 2012 +0000 +++ b/libmpdemux/demux_ts.c Sat Aug 18 19:38:47 2012 +0000 @@ -82,6 +82,7 @@ AUDIO_AAC_LATM = mmioFOURCC('M', 'P', '4', 'L'), AUDIO_TRUEHD = mmioFOURCC('T', 'R', 'H', 'D'), AUDIO_S302M = mmioFOURCC('B', 'S', 'S', 'D'), + AUDIO_PCM_BR = mmioFOURCC('B', 'P', 'C', 'M'), SPU_DVD = 0x3000000, SPU_DVB = 0x3000001, SPU_TELETEXT = 0x3000002, @@ -258,6 +259,7 @@ case AUDIO_MP2: case AUDIO_A52: case AUDIO_LPCM_BE: + case AUDIO_PCM_BR: case AUDIO_AAC: case AUDIO_AAC_LATM: case AUDIO_DTS: @@ -891,6 +893,8 @@ mp_msg(MSGT_DEMUXER, MSGL_INFO, "AUDIO DTS(pid=%d)", param->apid); else if(param->atype == AUDIO_LPCM_BE) mp_msg(MSGT_DEMUXER, MSGL_INFO, "AUDIO LPCM(pid=%d)", param->apid); + else if(param->atype == AUDIO_PCM_BR) + mp_msg(MSGT_DEMUXER, MSGL_INFO, "AUDIO PCMBR(pid=%d)", param->apid); else if(param->atype == AUDIO_AAC) mp_msg(MSGT_DEMUXER, MSGL_INFO, "AUDIO AAC(pid=%d)", param->apid); else if(param->atype == AUDIO_AAC_LATM) @@ -2560,6 +2564,9 @@ case 0x13: pmt->es[idx].type = SL_SECTION; break; + case 0x80: + pmt->es[idx].type = AUDIO_PCM_BR; + break; case 0x81: pmt->es[idx].type = AUDIO_A52; break;