mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
h265parser: Use vps_timing_info when not present in vui
The same timing_info will be present at vps or vui. When the timeing_info is present in the VPS, vui_timing_info , when present, shall be equal to vps_timing_info, and when not present, is inferred to be equal to vps_timing_info.
This commit is contained in:
parent
7b1b3327a0
commit
1af22f3561
1 changed files with 5 additions and 1 deletions
|
@ -1884,8 +1884,12 @@ gst_h265_parse_sps (GstH265Parser * parser, GstH265NalUnit * nalu,
|
|||
&& !vui->field_seq_flag && !vui->frame_field_info_present_flag) {
|
||||
sps->fps_num = vui->time_scale;
|
||||
sps->fps_den = vui->num_units_in_tick;
|
||||
GST_LOG ("framerate %d/%d", sps->fps_num, sps->fps_den);
|
||||
GST_LOG ("framerate %d/%d in VUI", sps->fps_num, sps->fps_den);
|
||||
}
|
||||
} else if (vps && vps->timing_info_present_flag) {
|
||||
sps->fps_num = vps->time_scale;
|
||||
sps->fps_den = vps->num_units_in_tick;
|
||||
GST_LOG ("framerate %d/%d in VPS", sps->fps_num, sps->fps_den);
|
||||
} else {
|
||||
GST_LOG ("No VUI, unknown framerate");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue