diff options
Diffstat (limited to 'TOOLS/vf_dlopen/rectangle.c')
-rw-r--r-- | TOOLS/vf_dlopen/rectangle.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/TOOLS/vf_dlopen/rectangle.c b/TOOLS/vf_dlopen/rectangle.c index 0aaa360598..f0827c974b 100644 --- a/TOOLS/vf_dlopen/rectangle.c +++ b/TOOLS/vf_dlopen/rectangle.c @@ -348,8 +348,7 @@ int vf_dlopen_getcontext(struct vf_dlopen_context *ctx, int argc, const char **a { "yuv420p", "yuv420p" }, { NULL, NULL } }; - privdata *priv = malloc(sizeof(privdata)); - memset(priv, 0, sizeof(*priv)); + privdata *priv = calloc(1,sizeof(privdata)); priv->step = 8; if(argc >= 1) priv->w = atoi(argv[0]); |