From 378051d80a4d1d05df77d536e09d6d4d31a902df Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Fri, 17 Jun 2016 14:58:44 +0200 Subject: [PATCH] h264parse: fix default time_offset_length The default value for time_offset_length should be 24, see section E2.2 of the H264 spec. https://bugzilla.gnome.org/show_bug.cgi?id=767792 --- 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 4a9b23b..bc84416 100644 --- a/gst-libs/gst/codecparsers/gsth264parser.c +++ b/gst-libs/gst/codecparsers/gsth264parser.c @@ -947,7 +947,7 @@ gst_h264_parse_clock_timestamp (GstH264ClockTimestamp * tim, } } - time_offset_length = 0; + time_offset_length = 24; if (vui->nal_hrd_parameters_present_flag) time_offset_length = vui->nal_hrd_parameters.time_offset_length; else if (vui->vcl_hrd_parameters_present_flag) -- 2.7.4