[FFmpeg-devel] [PATCH] Don't fail on Matroska with too many streams

Baptiste Coudurier baptiste.coudurier
Wed Jan 27 21:08:31 CET 2010


On 01/27/2010 08:49 AM, Michael Niedermayer wrote:
> On Wed, Jan 27, 2010 at 01:48:41PM -0200, Lucas Clemente Vella wrote:
>> If the number of tracks on a Matroska file is greater than
>> MAX_STREAMS, ignore the last tracks instead of closing with "out of
>> memory" message. Hopefully the discarded tracks will be subtitles for
>> strange languages.
>>
>> --
>> Lucas Clemente Vella
>> lvella at gmail.com.br
>
>>   matroskadec.c |   12 +++++++++++-
>>   1 file changed, 11 insertions(+), 1 deletion(-)
>> 3ddaef3cc4355a83e13ac9c5a16d1d8e671cce71  mkv_many_streams.patch
>
> iam not matroska maintainer but i take the liberty to reject this
> please work on dynamic allocation of things so that the MAX_STREAMS
> limit disappears or advocate bumping the value up with the next
> major ver bump.

Btw, avienc.c and av_find_stream_info seem the biggest users of MAX_STREAMS.

-- 
Baptiste COUDURIER
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer                                  http://www.ffmpeg.org



More information about the ffmpeg-devel mailing list