changeset 35012:144d16d56b45

TS demuxer: Add support for PCM variant found on BluRay.
author reimar
date Sat, 18 Aug 2012 19:38:47 +0000
parents b0ca340156a4
children 4d94558867d6
files libmpdemux/demux_ts.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;