mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 16:21:17 +00:00
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
This commit is contained in:
parent
91412b85ee
commit
c20d13d8f8
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue