[Ffmpeg-devel] [PATCH] reduce MAX_SCAN_PACKETS in mpegts.c
Nico Sabbi
nicola_sabbi
Sat Aug 26 18:08:19 CEST 2006
Hi,
the current mpegts demuxer is unbearably slow because it wants to scan the
first 32000 packets (corresponding to almost 6MB) to find usable programs,
making this demuxer unusable for non local streams (lan, dvb, etc).
This patch reduces MAX_SCAN_PACKETS to 512 (96KB) that should be enough
for any decently interleaved stream (out of all my samples not one couldn't
be played with this patch applied).
Nico
-------------- next part --------------
A non-text attachment was scrubbed...
Name: avfts.diff
Type: text/x-patch
Size: 422 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20060826/bbf89f5b/attachment.bin>
More information about the ffmpeg-devel
mailing list