changeset 30387:30d6f38357c7

If audio was identified as DTS in the PMT do not override that with TrueHD based only on substream id. Works with all available DTS and TrueHD samples available (2 each).
author reimar
date Sun, 24 Jan 2010 20:54:17 +0000
parents d33d65802937
children 45dcf93d41fa
files libmpdemux/demux_ts.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_ts.c	Sun Jan 24 20:46:26 2010 +0000
+++ b/libmpdemux/demux_ts.c	Sun Jan 24 20:54:17 2010 +0000
@@ -1418,7 +1418,7 @@
 		int ssid = parse_pes_extension_fields(p, pkt_len);
 		if((audio_substream_id!=-1) && (ssid != audio_substream_id))
 			return 0;
-		if(ssid == 0x72)
+		if(ssid == 0x72 && type_from_pmt != AUDIO_DTS)
 			es->type  = type_from_pmt = AUDIO_TRUEHD;
 	}