]> git.sesse.net Git - ffmpeg/commit
lavf/movenc: Use a dynamic buffer when writing the mfra box
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>
Tue, 23 Jun 2020 15:05:18 +0000 (16:05 +0100)
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>
Sun, 28 Jun 2020 19:16:29 +0000 (20:16 +0100)
commitd5247fb1da615a7ccff9fa7271bc8aba23e0de25
tree7e639f4191682910447ca61262acfb35d9010100
parentfdead2a31a4686488a29d45c3d2e9b8b7723c0ef
lavf/movenc: Use a dynamic buffer when writing the mfra box

When doing streamed output, with e.g. +dash, if the mfra box ended
up being larger than the AVIOContext write buffer, the (unchecked)
seeking back to update the box size would silently fail and produce
an invalid mfra box.

This is similar to how other boxes are written in fragmented mode.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
libavformat/movenc.c