changeset 4861:fe16d44f32d3 libavformat

Set stream type to ac3 if registration descriptor is present. Based on patch by Nico Sabi, nicola dot sabbi at poste dot it
author bcoudurier
date Sun, 12 Apr 2009 02:39:16 +0000
parents d14d1f5f4eb4
children 7517f820d260
files mpegts.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mpegts.c	Sun Apr 12 02:32:02 2009 +0000
+++ b/mpegts.c	Sun Apr 12 02:39:16 2009 +0000
@@ -601,6 +601,8 @@
                 reg_desc = bytestream_get_le32(&p);
                 if(reg_desc == AV_RL32("drac"))
                     has_dirac_descr = 1;
+                else if(reg_desc == AV_RL32("AC-3"))
+                    stream_type = STREAM_TYPE_AUDIO_AC3;
                 break;
             default:
                 break;