codecparser: h264: initialize parsing structures
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Thu, 17 Sep 2015 18:18:52 +0000 (20:18 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 29 Oct 2015 09:26:37 +0000 (11:26 +0200)
commitd054a6918cbbc9fb0fdd22cf0a7208129649593a
tree32cb53eb5c6f688304e94e7ee8d984afd2007e89
parentc8b3d84757fe7228a1210172a82605e87cac6c7f
codecparser: h264: initialize parsing structures

Initialize to 0 these parse structures before filling them: GstH264SEIMessage,
GstH264NalUnit, GstH264PPS, GstH264SPS and GstH264SliceHdr.

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/gsth264parser.c