From: Baptiste Coudurier Date: Sun, 18 Oct 2009 20:11:32 +0000 (+0000) Subject: handle_packets takes number of packets as arg, avoid reading too much X-Git-Tag: v0.6~2900 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=45a49840f329c45ea3eb8ad29f5d8e52c6cc4dde;p=coroid%2Flibav_saccubus.git handle_packets takes number of packets as arg, avoid reading too much Originally committed as revision 20288 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 300eb71a7..8a8880128 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -1377,7 +1377,7 @@ static int mpegts_read_header(AVFormatContext *s, 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;