diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-10-18 20:11:32 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-10-18 20:11:32 +0000 |
commit | 45a49840f329c45ea3eb8ad29f5d8e52c6cc4dde (patch) | |
tree | d8eb5d02dc9db4ace8c5351ccf4ad1553b19b7f0 /libavformat/mpegts.c | |
parent | 2f77923d72c35f4a10b9bb1d1086d0edd7f43dde (diff) | |
download | ffmpeg-45a49840f329c45ea3eb8ad29f5d8e52c6cc4dde.tar.gz |
handle_packets takes number of packets as arg, avoid reading too much
Originally committed as revision 20288 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mpegts.c')
-rw-r--r-- | libavformat/mpegts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 300eb71a73..8a88801287 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; |