[MOVED FROM BAD 103/134] vp8enc: Fix 'argument to 'sizeof' in 'memset' call is the...
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 6 Mar 2012 14:21:17 +0000 (15:21 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sun, 16 Sep 2012 13:28:18 +0000 (15:28 +0200)
ext/vp8/gstvp8enc.c

index a5dfa7c..2d007d1 100644 (file)
@@ -827,7 +827,7 @@ gst_vp8_enc_set_format (GstBaseVideoEncoder * base_video_encoder,
 
   /* prepare cached image buffer setup */
   image = &encoder->image;
-  memset (image, 0, sizeof (image));
+  memset (image, 0, sizeof (*image));
 
   image->fmt = VPX_IMG_FMT_I420;
   image->bps = 12;