From 43006110827bdf0a049befb78bf1011676374b82 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Wed, 7 Feb 2018 16:29:59 -0500 Subject: 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 --- gst-libs/gst/codecparsers/gsth264parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/codecparsers/gsth264parser.c b/gst-libs/gst/codecparsers/gsth264parser.c index 3b3ba7488..73968db93 100644 --- a/gst-libs/gst/codecparsers/gsth264parser.c +++ b/gst-libs/gst/codecparsers/gsth264parser.c @@ -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; -- cgit v1.2.1