codecparsers_h264: initialize some fields of pic_timing structure
authorAurélien Zanelli <aurelien.zanelli@parrot.com>
Fri, 1 Aug 2014 14:40:49 +0000 (16:40 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 11 Aug 2014 06:37:41 +0000 (08:37 +0200)
Otherwise pic timing structure can have invalid cpb_removal_delay,
dpb_output_delay or pic_struct_present_flag which are blindly retrieved
in h264parse.

https://bugzilla.gnome.org/show_bug.cgi?id=734124

gst-libs/gst/codecparsers/gsth264parser.c

index 4a038fc..f344198 100644 (file)
@@ -831,6 +831,9 @@ gst_h264_parser_parse_pic_timing (GstH264NalParser * nalparser,
   }
 
   /* default values */
+  tim->cpb_removal_delay = 0;
+  tim->dpb_output_delay = 0;
+  tim->pic_struct_present_flag = FALSE;
   memset (tim->clock_timestamp_flag, 0, 3);
 
   if (nalparser->last_sps->vui_parameters_present_flag) {