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

bcoudurier subversion
Sun Oct 18 22:11:32 CEST 2009


Author: bcoudurier
Date: Sun Oct 18 22:11:32 2009
New Revision: 20288

Log:
handle_packets takes number of packets as arg, avoid reading too much

Modified:
   trunk/libavformat/mpegts.c

Modified: trunk/libavformat/mpegts.c
==============================================================================
--- trunk/libavformat/mpegts.c	Sun Oct 18 22:10:10 2009	(r20287)
+++ trunk/libavformat/mpegts.c	Sun Oct 18 22:11:32 2009	(r20288)
@@ -1377,7 +1377,7 @@ static int mpegts_read_header(AVFormatCo
 
         mpegts_open_section_filter(ts, PAT_PID, pat_cb, ts, 1);
 
-        handle_packets(ts, s->probesize);
+        handle_packets(ts, s->probesize / ts->raw_packet_size);
         /* if could not find service, enable auto_guess */
 
         ts->auto_guess = 1;



More information about the ffmpeg-cvslog mailing list