[FFmpeg-devel] [PATCH] probe max read size
Mon Jun 1 21:36:54 CEST 2009
Michael Niedermayer wrote:
> On Sun, May 31, 2009 at 02:53:34AM -0700, Baptiste Coudurier wrote:
>> After some tests, it seems more reasonable to stop probing after some
>> max size to avoid consuming to much memory.
> Maybe we then should replace probe_packets by a size based thing,
> having 2 is uglier than one if one is sufficient
Sure. Problem is per stream counting is not reasonable since streams
might not have many packets present this will cause much buffering.
I believe the first suggestion ensure memory consumed is less that a
certain amount for each call of av_read_packet, which is reasonable and
seem to work fine with the samples I have.
Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA
Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer http://www.ffmpeg.org
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2739 bytes
Desc: not available
More information about the ffmpeg-devel