Commit 1503b901 authored by mru's avatar mru

Etsi identifies DTS audio with stream_private+descriptor 0x7b (in the PMT).

This patch permits to recognize these streams but it's untested for
lack of samples.

Patch by Nico Sabbi <nicola_sabbi at fastwebnet it>


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5671 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 1d3676af
...@@ -427,10 +427,14 @@ static void pmt_cb(void *opaque, const uint8_t *section, int section_len) ...@@ -427,10 +427,14 @@ static void pmt_cb(void *opaque, const uint8_t *section, int section_len)
desc_tag = get8(&p, desc_list_end); desc_tag = get8(&p, desc_list_end);
if (desc_tag < 0) if (desc_tag < 0)
break; break;
if (stream_type == STREAM_TYPE_PRIVATE_DATA && if (stream_type == STREAM_TYPE_PRIVATE_DATA) {
((desc_tag == 0x6A) || (desc_tag == 0x7A))) { if((desc_tag == 0x6A) || (desc_tag == 0x7A)) {
/*assume DVB AC-3 Audio*/ /*assume DVB AC-3 Audio*/
stream_type = STREAM_TYPE_AUDIO_AC3; stream_type = STREAM_TYPE_AUDIO_AC3;
} else if(desc_tag == 0x7B) {
/* DVB DTS audio */
stream_type = STREAM_TYPE_AUDIO_DTS;
}
} }
desc_len = get8(&p, desc_list_end); desc_len = get8(&p, desc_list_end);
desc_end = p + desc_len; desc_end = p + desc_len;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment