ducatividdec: ensure status is zeroed at start
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 27 Jul 2012 14:12:46 +0000 (14:12 +0000)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 27 Jul 2012 14:14:03 +0000 (14:14 +0000)
Some data (eg, buf) must be NULL when unused, so zero everything
to make sure everything that has to be is.

src/gstducatividdec.c

index c3c8737dba0c4bc631210a38bb9acb6aa8377ccf..11673362317b8ce9a0230890307c8f999ac3f55e 100644 (file)
@@ -649,6 +649,7 @@ gst_ducati_viddec_allocate_params (GstDucatiVidDec * self, gint params_sz,
   if (G_UNLIKELY (!self->status)) {
     return FALSE;
   }
+  memset(self->status, 0, status_sz);
   self->status->size = status_sz;
 
   /* allocate inBufs/outBufs: */