[FFmpeg-devel] [PATCH] lavf/segment: provide a virtual AVIOContext representing all the segments
James Almer
jamrial at gmail.com
Thu Oct 6 02:50:16 EEST 2016
On 10/5/2016 2:33 AM, Rodger Combs wrote:
> This allows the use of muxers like matroska, which attempt to seek even
> when an AVIOContext doesn't set `seekable`, without concern for a rouge
> seek leading the muxer to overwrite the wrong data in a later segment.
For the record, this behavior in Matroska will stop after my CRC32 patchset.
As an example of this, take the first of the fate-lavf-mkv commands, the one
that creates a file with an attachment, and make it output to a non seekable
protocol. The result will have the Attachments master being corrupted as it
tried in vain to jump back to the beginning of the master to write the
element size long after having flushed.
After patch 9 of said set, this scenario is fixed as far as i could see.
More information about the ffmpeg-devel
mailing list