Files
ffmpeg/tests/ref/fate/enhanced-flv-hevc-hdr10
Gavin Li 3d96d83a0a avformat/rawdec: set framerate in codec parameters
Commit ba4b73c977 caused a regression in
the usage of avg_frame_rate to detect the frame rate of raw h264/hevc
bitstreams: after the commit, avg_frame_rate is always the value of the
-framerate option (which is set to 25 by default) instead of the actual
frame rate derived from the bitstream SPS/VPS NALUs.

This commit fixes the regression by setting the framerate codec
parameter to the value of the framerate option instead. After this
change, bitstreams without timing information will derive avg_frame_rate
from the -framerate option, while bitstreams with timing information
will derive avg_frame_rate from the bitstream itself.

The h264-bsf-dts2pts test now returns the correct frame durations for a
bitstream with a mix of single-field and double-field frames.

Signed-off-by: Gavin Li <git@thegavinli.com>
Signed-off-by: James Almer <jamrial@gmail.com>
2025-11-27 20:01:54 -03:00

102 lines
2.4 KiB
Plaintext

#extradata 0: 111, 0x091d1885
#tb 0: 1/1000
#media_type 0: video
#codec_id 0: hevc
#dimensions 0: 1280x720
#sar 0: 0/1
0, 0, 0, 0, 77718, 0xb59c83a5
[FRAME]
media_type=video
stream_index=0
key_frame=1
pts=0
pts_time=0.000000
pkt_dts=0
pkt_dts_time=0.000000
best_effort_timestamp=0
best_effort_timestamp_time=0.000000
duration=N/A
duration_time=N/A
pkt_pos=439
pkt_size=77718
width=1280
height=720
crop_top=0
crop_bottom=0
crop_left=0
crop_right=0
pix_fmt=yuv420p10
sample_aspect_ratio=N/A
pict_type=I
interlaced_frame=0
top_field_first=0
lossless=0
repeat_pict=0
color_range=tv
color_space=bt2020nc
color_primaries=bt2020
color_transfer=smpte2084
chroma_location=left
alpha_mode=unspecified
[SIDE_DATA]
side_data_type=Mastering display metadata
red_x=13250/50000
red_y=34500/50000
green_x=7500/50000
green_y=3000/50000
blue_x=34000/50000
blue_y=16000/50000
white_point_x=15635/50000
white_point_y=16450/50000
min_luminance=50/10000
max_luminance=10000000/10000
[/SIDE_DATA]
[SIDE_DATA]
side_data_type=Content light level metadata
max_content=1000
max_average=200
[/SIDE_DATA]
[SIDE_DATA]
side_data_type=HDR Dynamic Metadata SMPTE2094-40 (HDR10+)
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]
[/FRAME]