This website requires JavaScript.
Explore
Help
Register
Sign In
virtualenv
/
FFmpeg
Watch
1
Star
0
Fork
0
You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced
2024-12-18 03:19:31 +02:00
Code
Issues
Releases
Activity
d8f3cc90ac
FFmpeg
/
tests
/
ref
/
fate
/
binsub-mksenc
2 lines
33 B
Plaintext
Raw
Normal View
History
Unescape
Escape
avformat/matroskaenc: Don't waste bytes on BlockGroup length fields This commit uses the new EbmlWriter API to write the length fields of the BlockGroup and its descendants that are themselves Master elements (namely BlockAdditions and BlockMore) on the least amount of bytes. This fixes regressions introduced when the special code for writing general subtitles was removed. Accordingly, the binsub-mksenc and matroska-zero-length-block FATE-tests have now been reverted back to their old state again; the advantages of this approach are evident with the matroska-vp8-alpha-remux test which up until now wrote all the length fields of all BlockGroups, BlockAdditions and BlockMore on eight bytes. Using the EbmlWriter API also allowed to improve locality in mkv_write_block(): E.g. both DiscardPadding as well as the BlockAdditional side-data are now directly used to add elements to the writer whereas the earlier code had to first check for whether a BlockGroup should be used and then check again (after the place where a BlockGroup would be opened if one were used) for whether there is DiscardPadding or BlockAdditional side-data to write. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-01-16 15:01:28 +02:00
490b1b4beb4a614c06004609039ce779
Reference in New Issue
Copy Permalink