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

bcoudurier subversion
Thu Nov 25 01:29:45 CET 2010


Author: bcoudurier
Date: Thu Nov 25 01:29:44 2010
New Revision: 25822

Log:
In TS demuxer, keep the pmt filter open to parse all pmt sections,
based on patch by Stephen D'Angelo, SDAngelo at evertz dot com.

Modified:
   trunk/libavformat/mpegts.c

Modified: trunk/libavformat/mpegts.c
==============================================================================
--- trunk/libavformat/mpegts.c	Wed Nov 24 21:53:27 2010	(r25821)
+++ trunk/libavformat/mpegts.c	Thu Nov 25 01:29:44 2010	(r25822)
@@ -1083,8 +1083,6 @@ static void pmt_cb(MpegTSFilter *filter,
         p = desc_list_end;
     }
 
-    /* all parameters are there */
-    mpegts_close_filter(ts, filter);
  out:
     av_free(mp4_dec_config_descr);
 }
@@ -1122,6 +1120,8 @@ static void pat_cb(MpegTSFilter *filter,
             /* NIT info */
         } else {
             av_new_program(ts->stream, sid);
+            if (ts->pids[pmt_pid])
+                mpegts_close_filter(ts, ts->pids[pmt_pid]);
             mpegts_open_section_filter(ts, pmt_pid, pmt_cb, ts, 1);
             add_pat_entry(ts, sid);
             add_pid_to_pmt(ts, sid, 0); //add pat pid to program



More information about the ffmpeg-cvslog mailing list