[FFmpeg-devel] [PATCH] avformat/options_table: Set the default maximum number of streams to 100

Andreas Cadhalpun andreas.cadhalpun at googlemail.com
Fri Dec 9 02:03:58 EET 2016


On 08.12.2016 22:59, Carl Eugen Hoyos wrote:
> 2016-12-08 18:37 GMT+01:00 Michael Niedermayer <michael at niedermayer.cc>:
> 
>> -{"max_streams", "maximum number of streams", OFFSET(max_streams), AV_OPT_TYPE_INT, { .i64 = INT_MAX }, 0, INT_MAX, D },
>> +{"max_streams", "maximum number of streams", OFFSET(max_streams), AV_OPT_TYPE_INT, { .i64 = 100 }, 0, INT_MAX, D },
> 
> I wanted to suggest 1000 which is still a magnitude less than the provided
> crashing sample but 255 also sounds ok to me.

Either value is OK. The important thing is that it's several orders of
magnitude lower than INT_MAX.

Best regards,
Andreas



More information about the ffmpeg-devel mailing list