diff --git a/ext/vp8/gstvp8enc.c b/ext/vp8/gstvp8enc.c index b1f06e056a..9dadd51bdf 100644 --- a/ext/vp8/gstvp8enc.c +++ b/ext/vp8/gstvp8enc.c @@ -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;