]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Add support for detecting AC-3 streams via the h.222 registration descriptor
authorAndreas Öman <andreas@lonelycoder.com>
Sat, 15 Aug 2009 06:36:53 +0000 (06:36 +0000)
committerAndreas Öman <andreas@lonelycoder.com>
Sat, 15 Aug 2009 06:36:53 +0000 (06:36 +0000)
src/psi.c

index b6a05d57c696816a7bbe6243d385ee168d444f1b..eddf758c3e63820061d01c1248585e4dc867a91d 100644 (file)
--- a/src/psi.c
+++ b/src/psi.c
@@ -347,6 +347,12 @@ psi_parse_pmt(th_transport_t *t, uint8_t *ptr, int len, int chksvcid,
        update |= psi_desc_ca(t, ptr, dlen);
        break;
 
+      case DVB_DESC_REGISTRATION:
+       if(dlen == 4 && 
+          ptr[0] == 'A' && ptr[1] == 'C' && ptr[2] == '-' &&  ptr[3] == '3')
+         hts_stream_type = SCT_AC3;
+       break;
+
       case DVB_DESC_VIDEO_STREAM:
        frameduration = mpeg2video_framedurations[(ptr[0] >> 3) & 0xf];
        break;