decoder: h264: initialize PPS's slice_group_id
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Fri, 11 Sep 2015 14:49:16 +0000 (16:49 +0200)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Tue, 15 Sep 2015 17:36:37 +0000 (19:36 +0200)
commitf6ae00a6bb5d55b48fc2074b5abccad0bccee641
tree47c1cad7397bfe40caea523b8f17bcccdc3064e5
parent6d0c2a8e23ee69292a9e107f0d60e378f6c623dd
decoder: h264: initialize PPS's slice_group_id

When the GstVaapiParserInfoH264 is allocated, the memory is not initialized,
so it contains random data.

When gst_h264_parser_parse_pps() fails, the PPS structure keeps slice_group_id
pointer uninitialized, leading to a segmentation fault when the memory is
freed.

This patch prevents this by initializing the slice_group_id before the PPS
parsing.

Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
https://bugzilla.gnome.org/show_bug.cgi?id=754845
gst-libs/gst/vaapi/gstvaapidecoder_h264.c