h264parser: Expose framerate even if fixed_frame_rate flag isn't set

There is nothing in the spec that state that framerate is not valid in
that case. This aligns GStreamer with FFMPEG behaviour for similar
streams.

https://bugzilla.gnome.org/show_bug.cgi?id=793284
This commit is contained in:
Nicolas Dufresne 2018-02-07 16:29:59 -05:00
parent 9af73aa1d1
commit 4300611082

View file

@ -2438,7 +2438,7 @@ gst_h264_video_calculate_framerate (const GstH264SPS * sps,
if (sps) {
if (sps->vui_parameters_present_flag) {
const GstH264VUIParams *vui = &sps->vui_parameters;
if (vui->timing_info_present_flag && vui->fixed_frame_rate_flag) {
if (vui->timing_info_present_flag) {
int delta_tfi_divisor = 1;
num = vui->time_scale;
den = vui->num_units_in_tick;