[FFmpeg-devel] [PATCH]lavf/mov: Do not blindly allocate stts entries
derek.buitenhuis at gmail.com
Fri Dec 29 23:33:25 EET 2017
On 12/29/2017 9:32 PM, Derek Buitenhuis wrote:
> Because the buffer is now grown exponentially (by a factor of 2 every
> time it is resizes), it's possible that it ends up with almost double
> the size of 'entries' after resizes.
> For example, consider a valid MP4 file with (1024 * 1024 + 1) entries.
> With the new code, the final buffer sizes will be (1024 * 1024 * 2) after
> iterating over everything. I don't know if it's something we care about.
Ah, actually disregard this too. Sigh. I must be on some sort of Christmas
drugs or something, because I'm misreading everything. Maybe too much eggnog.
More information about the ffmpeg-devel