mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 03:39:45 +00:00
handle_packets takes number of packets as arg, avoid reading too much
Originally committed as revision 20288 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
2f77923d72
commit
45a49840f3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user