vp8enc: Fix 'argument to 'sizeof' in 'memset' call is the same expression as the destination' compiler warning

This commit is contained in:
Sebastian Dröge 2012-03-06 15:21:17 +01:00
parent 5a6b7fba4d
commit 837763fee8

View 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;