codecparser: h265: initialize parsing structures
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Fri, 18 Sep 2015 08:09:26 +0000 (10:09 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 29 Oct 2015 09:26:36 +0000 (11:26 +0200)
commitc8b3d84757fe7228a1210172a82605e87cac6c7f
tree21617e6cc816b1e567dc7a4bb8ef7891e19a56b0
parent0e2880ac2eafc86c30056432d0cb84ba2bde65b2
codecparser: h265: initialize parsing structures

Initialize to 0 these parse structures before filling them: GstH265SEIMessage,
GstH265NalUnit, GstH265VPS, GstH265PPS, GstH265SPS and GstH265SliceHdr.

When calling the functions which fill those structures, they may fail, leaving
unitialized those structures. This situation may lead to future problems, such
as a segmentation fault when freeing, for example.

This patch initializes to zero these structures, before filling them.

https://bugzilla.gnome.org/show_bug.cgi?id=755161
gst-libs/gst/codecparsers/gsth265parser.c