summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNico Sabbi <nicola.sabbi@poste.it>2006-07-08 16:25:45 +0000
committerMåns Rullgård <mans@mansr.com>2006-07-08 16:25:45 +0000
commit2eb1a65d911a2af3b86164a1506cccfa9cd0d51a (patch)
tree22177a1332c12e29613aa328a8d791c07819562b
parent6be4846a1a3cd3571acb8a958f02c98bc51caf3f (diff)
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> Originally committed as revision 5671 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/mpegts.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 5575cccda4..7076fb1234 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -427,10 +427,14 @@ static void pmt_cb(void *opaque, const uint8_t *section, int section_len)
desc_tag = get8(&p, desc_list_end);
if (desc_tag < 0)
break;
- if (stream_type == STREAM_TYPE_PRIVATE_DATA &&
- ((desc_tag == 0x6A) || (desc_tag == 0x7A))) {
+ if (stream_type == STREAM_TYPE_PRIVATE_DATA) {
+ if((desc_tag == 0x6A) || (desc_tag == 0x7A)) {
/*assume DVB AC-3 Audio*/
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_end = p + desc_len;