Commit e75264a1 authored by bcoudurier's avatar bcoudurier

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20288 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 1a80b15b
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment