[FFmpeg-devel] [PATCH] probe max read size

Baptiste Coudurier baptiste.coudurier
Sun May 31 11:53:34 CEST 2009


After some tests, it seems more reasonable to stop probing after some
max size to avoid consuming to much memory.

I propose to raise probesize default to MAX_READ_SIZE

/* absolute maximum size we read until we abort */
#define MAX_READ_SIZE        5000000

And also to replace all MAX_READ_SIZE occurence with s->probesize to
make it configurable.

Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer                                  http://www.ffmpeg.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: probe_max_read_size.patch
Type: text/x-diff
Size: 938 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090531/eeeea3d6/attachment.patch>

More information about the ffmpeg-devel mailing list