# HG changeset patch # User bcoudurier # Date 1255896692 0 # Node ID ca4d9e153f5667385785b326e3bcd1271500b885 # Parent 03d4d65345543c0aa24aea912a8bfb728be161ae handle_packets takes number of packets as arg, avoid reading too much diff -r 03d4d6534554 -r ca4d9e153f56 mpegts.c --- 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;