vp8enc: Fix 'argument to 'sizeof' in 'memset' call is the same expression as 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>
Tue, 6 Mar 2012 14:21:17 +0000 (15:21 +0100)
ext/vp8/gstvp8enc.c

index b1f06e056a40282b28dd5808388af4716e8507d0..9dadd51bdfd87f4b6fd32dc0eda57b062c3aa3e8 100644 (file)
@@ -843,7 +843,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;