diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2019-04-20 01:41:05 +0200 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2019-05-08 13:02:30 -0300 |
commit | e04a24e70148e330bcdcfd7c049acbe1a821398f (patch) | |
tree | 58c0ad258eabf293d973b83c0ef7b7e8c1d9a773 /libavformat/epafdec.c | |
parent | 8f53fd2dfdea9f5fac4c49e6475e75fc2f59ef1e (diff) | |
download | ffmpeg-e04a24e70148e330bcdcfd7c049acbe1a821398f.tar.gz |
avformat/matroskaenc: Avoid seeking when writing level 1 elements
Up until now, the writing process for level 1 elements (those elements
for which CRC-32 elements are written by default) was this in case the
output was seekable: Write the EBML ID, write an "unkown length" EBML
number of the desired length, then write the element into a dynamic
buffer, then write the dynamic buffer (after possible calculation and
writing of the CRC-element), then seek back to the size element and
overwrite the unknown-size element with the real size. The seeking and
overwriting part has been eliminated by not writing the size initially.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/epafdec.c')
0 files changed, 0 insertions, 0 deletions