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).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30429 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2010-01-24 20:54:17 +00:00
parent fb8c6688c9
commit 2e50d88ab2
1 changed files with 1 additions and 1 deletions

View File

@ -1418,7 +1418,7 @@ static int pes_parse2(unsigned char *buf, uint16_t packet_len, ES_stream_t *es,
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;
}