[FFmpeg-cvslog] r18457 - trunk/libavformat/mpegts.c

bcoudurier subversion
Sun Apr 12 04:39:17 CEST 2009


Author: bcoudurier
Date: Sun Apr 12 04:39:16 2009
New Revision: 18457

Log:
Set stream type to ac3 if registration descriptor is present.
Based on patch by Nico Sabi, nicola dot sabbi at poste dot it

Modified:
   trunk/libavformat/mpegts.c

Modified: trunk/libavformat/mpegts.c
==============================================================================
--- trunk/libavformat/mpegts.c	Sun Apr 12 04:32:02 2009	(r18456)
+++ trunk/libavformat/mpegts.c	Sun Apr 12 04:39:16 2009	(r18457)
@@ -601,6 +601,8 @@ static void pmt_cb(MpegTSFilter *filter,
                 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;



More information about the ffmpeg-cvslog mailing list