Mercurial > libavformat.hg
changeset 5304:ca4d9e153f56 libavformat
handle_packets takes number of packets as arg, avoid reading too much
author | bcoudurier |
---|---|
date | Sun, 18 Oct 2009 20:11:32 +0000 |
parents | 03d4d6534554 |
children | 026cc515aad8 |
files | mpegts.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mpegts.c Sun Oct 18 20:08:13 2009 +0000 +++ b/mpegts.c Sun Oct 18 20:11:32 2009 +0000 @@ -1377,7 +1377,7 @@ 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;