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

wm4 nfxjfg at googlemail.com
Sun Dec 11 17:47:13 EET 2016


On Sun, 11 Dec 2016 16:19:03 +0100
Nicolas George <george at nsup.org> wrote:

> Le primidi 21 frimaire, an CCXXV, wm4 a écrit :
> > Subtitle streams, font attachments, attached images, and other things
> > could also inflate the number of streams, so 1000 seems a bit low.  
> 
> As a side note, attachments are presented in the streams' extradata, and
> as such loaded immediately.
> 
> A player would have, for each font, one copy in the streams' codecpar,
> one copy in the streams codec context for compatibility, and one copy in
> the memory of the font rasterizer library.
> 
> We need to change that.
> 
> Regards,
> 

Attachment contents are AVPackets, and thus reference counted (or can
be). It's up to a player what to do with that, not libavformat.


More information about the ffmpeg-devel mailing list