mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-18 03:19:31 +02:00
9f7e0b37ff
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>
39 lines
1.3 KiB
Plaintext
39 lines
1.3 KiB
Plaintext
58147987d42f32d105d96b24b0755257 *tests/data/fate/matroska-vp8-alpha-remux.matroska
|
|
235018 tests/data/fate/matroska-vp8-alpha-remux.matroska
|
|
#tb 0: 1/1000
|
|
#media_type 0: video
|
|
#codec_id 0: vp8
|
|
#dimensions 0: 320x213
|
|
#sar 0: 1/1
|
|
0, 0, 0, 33, 2108, 0x59b92a34, S=2, 1900, 12
|
|
0, 32, 32, 33, 142, 0x2f2a3fed, F=0x0, S=1, 160
|
|
0, 65, 65, 33, 157, 0x17804767, F=0x0, S=1, 209
|
|
0, 99, 99, 33, 206, 0x537262ca, F=0x0, S=1, 317
|
|
0, 132, 132, 33, 259, 0x73ff74b6, F=0x0, S=1, 384
|
|
0, 165, 165, 33, 320, 0x0fcf8ce4, F=0x0, S=1, 415
|
|
0, 199, 199, 33, 377, 0x8fffb5f5, F=0x0, S=1, 475
|
|
[STREAM]
|
|
DISPOSITION:default=1
|
|
DISPOSITION:dub=0
|
|
DISPOSITION:original=0
|
|
DISPOSITION:comment=0
|
|
DISPOSITION:lyrics=0
|
|
DISPOSITION:karaoke=0
|
|
DISPOSITION:forced=0
|
|
DISPOSITION:hearing_impaired=1
|
|
DISPOSITION:visual_impaired=0
|
|
DISPOSITION:clean_effects=0
|
|
DISPOSITION:attached_pic=0
|
|
DISPOSITION:timed_thumbnails=0
|
|
DISPOSITION:captions=0
|
|
DISPOSITION:descriptions=0
|
|
DISPOSITION:metadata=0
|
|
DISPOSITION:dependent=0
|
|
DISPOSITION:still_image=0
|
|
[SIDE_DATA]
|
|
side_data_type=Stereo 3D
|
|
type=2D
|
|
inverted=0
|
|
[/SIDE_DATA]
|
|
[/STREAM]
|