summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.com>2018-02-07 16:29:59 -0500
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2018-02-21 16:31:27 -0500
commit43006110827bdf0a049befb78bf1011676374b82 (patch)
tree986f1accd2fe670bb247843a8b7e737f8432a3b1 /gst-libs
parent9af73aa1d1536a99d682519e930490a145b263ba (diff)
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
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/codecparsers/gsth264parser.c2
1 files changed, 1 insertions, 1 deletions
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;