Commit c20d13d8 authored by Mark Nauwelaerts's avatar Mark Nauwelaerts

codecparsers: h264: zero-initialize SPS VUI parameters

... 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
parent 91412b85
...@@ -1446,6 +1446,7 @@ gst_h264_parse_sps (GstH264NalUnit * nalu, GstH264SPS * sps, ...@@ -1446,6 +1446,7 @@ gst_h264_parse_sps (GstH264NalUnit * nalu, GstH264SPS * sps,
sps->bit_depth_chroma_minus8 = 0; sps->bit_depth_chroma_minus8 = 0;
memset (sps->scaling_lists_4x4, 16, 96); memset (sps->scaling_lists_4x4, 16, 96);
memset (sps->scaling_lists_8x8, 16, 384); memset (sps->scaling_lists_8x8, 16, 384);
memset (&sps->vui_parameters, 0, sizeof (sps->vui_parameters));
sps->mb_adaptive_frame_field_flag = 0; sps->mb_adaptive_frame_field_flag = 0;
sps->frame_crop_left_offset = 0; sps->frame_crop_left_offset = 0;
sps->frame_crop_right_offset = 0; sps->frame_crop_right_offset = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment