codecparsers: h264: zero-initialize SPS VUI parameters
authorMark Nauwelaerts <mnauw@users.sourceforge.net>
Sat, 12 Jan 2013 12:15:02 +0000 (13:15 +0100)
committerMark Nauwelaerts <mnauw@users.sourceforge.net>
Tue, 15 Jan 2013 18:44:06 +0000 (19:44 +0100)
... so all 'present' flags indicate no presence of optional parts
in case VUI parameters end up not being parsed.

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

gst-libs/gst/codecparsers/gsth264parser.c

index 8b2e231..ac307c8 100644 (file)
@@ -1446,6 +1446,7 @@ gst_h264_parse_sps (GstH264NalUnit * nalu, GstH264SPS * sps,
   sps->bit_depth_chroma_minus8 = 0;
   memset (sps->scaling_lists_4x4, 16, 96);
   memset (sps->scaling_lists_8x8, 16, 384);
+  memset (&sps->vui_parameters, 0, sizeof (sps->vui_parameters));
   sps->mb_adaptive_frame_field_flag = 0;
   sps->frame_crop_left_offset = 0;
   sps->frame_crop_right_offset = 0;