changeset 1164:55627fca95a1 libavformat

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>
author mru
date Sat, 08 Jul 2006 16:25:45 +0000
parents e605b7f63e17
children 8ad5cc2ba4b8
files mpegts.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mpegts.c	Sat Jul 08 13:36:31 2006 +0000
+++ b/mpegts.c	Sat Jul 08 16:25:45 2006 +0000
@@ -427,10 +427,14 @@
             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;