h264parse: fix default time_offset_length
authorMichael Olbrich <m.olbrich@pengutronix.de>
Fri, 17 Jun 2016 12:58:44 +0000 (14:58 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 21 Jun 2016 07:45:43 +0000 (10:45 +0300)
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

index 4a9b23b..bc84416 100644 (file)
@@ -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)