1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-02 03:06:28 +02:00
FFmpeg/tests/ref/fate/webm-hdr10-plus-remux
Andreas Rheinhardt d53acf452f avformat/matroskaenc: Don't write \0 unnecessarily
Writing the duration SimpleTag is special: It's size is
reserved in advance via an EBML Void element (if seekable)
and this reserved space is overwritten when writing the trailer;
it does not use put_ebml_string().

The string to write is created via snprintf on a buffer
of size 20; this buffer is then written via put_ebml_binary()
with a size of 20.

EBML strings need not be zero-terminated; if not, they
are implicitly terminated by the element's length field.
snprintf() always zero-terminates the buffer, i.e.
the last byte can be discarded when using an EBML string.
This patch does this.

The FATE changes are as expected: One byte saved for every
track; the only exception is the matroska-qt-mode test:
An additional byte is saved because an additional byte
could be saved from the enclosing Tags length field.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2023-08-10 23:56:35 +02:00

64 lines
1.7 KiB
Plaintext

7c5ae91189589c07f92aa97cb9b3d9e1 *tests/data/fate/webm-hdr10-plus-remux.webm
13842 tests/data/fate/webm-hdr10-plus-remux.webm
#tb 0: 1/1000
#media_type 0: video
#codec_id 0: vp9
#dimensions 0: 1280x720
#sar 0: 1/1
0, 0, 0, 40, 13350, 0x5f64e443, S=1, 11304
[PACKET]
codec_type=video
stream_index=0
pts=0
pts_time=0.000000
dts=0
dts_time=0.000000
duration=40
duration_time=0.040000
size=13350
pos=392
flags=K__
[SIDE_DATA]
side_data_type=HDR10+ Dynamic Metadata (SMPTE 2094-40)
application version=1
num_windows=1
targeted_system_display_maximum_luminance=400/1
maxscl=3340/100000
maxscl=2870/100000
maxscl=2720/100000
average_maxrgb=510/100000
num_distribution_maxrgb_percentiles=9
distribution_maxrgb_percentage=1
distribution_maxrgb_percentile=30/100000
distribution_maxrgb_percentage=5
distribution_maxrgb_percentile=2940/100000
distribution_maxrgb_percentage=10
distribution_maxrgb_percentile=255/100000
distribution_maxrgb_percentage=25
distribution_maxrgb_percentile=70/100000
distribution_maxrgb_percentage=50
distribution_maxrgb_percentile=1340/100000
distribution_maxrgb_percentage=75
distribution_maxrgb_percentile=1600/100000
distribution_maxrgb_percentage=90
distribution_maxrgb_percentile=1850/100000
distribution_maxrgb_percentage=95
distribution_maxrgb_percentile=1950/100000
distribution_maxrgb_percentage=99
distribution_maxrgb_percentile=2940/100000
fraction_bright_pixels=1/1000
knee_point_x=0/4095
knee_point_y=0/4095
num_bezier_curve_anchors=9
bezier_curve_anchors=102/1023
bezier_curve_anchors=205/1023
bezier_curve_anchors=307/1023
bezier_curve_anchors=410/1023
bezier_curve_anchors=512/1023
bezier_curve_anchors=614/1023
bezier_curve_anchors=717/1023
bezier_curve_anchors=819/1023
bezier_curve_anchors=922/1023
[/SIDE_DATA]
[/PACKET]