diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-01-14 01:18:24 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-01-19 11:40:56 +0100 |
commit | 6b1968e939472125f97947fe62a534364212f573 (patch) | |
tree | 25529c20521c1251e9d9a68841791d39f6c02369 /tests/ref/seek/vsynth_lena-mpeg2-thread-ivlc | |
parent | dc555de823ac7e9be73dddafda26e4b15ea1cc3f (diff) | |
download | ffmpeg-6b1968e939472125f97947fe62a534364212f573.tar.gz |
avformat/matroskaenc: Avoid seeks when writing EBML header
Using start/end_ebml_master() to write an EBML Master element
uses seeks under the hood. This does not work if the output is
unseekable with the AVIOContext's buffer being very small
(the size of the currently written Matroska EBML header is 40)
or with the AVIOContext being in direct mode, because then
this seek can't be performed in the AVIOContext's buffer.
So using an approach that does not rely on seeking at all
is preferable; this is achieved by switching to EbmlWriter.
Also factor writing the EBML header out into a function of its own.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'tests/ref/seek/vsynth_lena-mpeg2-thread-ivlc')
0 files changed, 0 insertions, 0 deletions