Commit 658c51b6 authored by Rémi Duraffort's avatar Rémi Duraffort

omxil: fix calloc usage

parent 803983ec
...@@ -296,7 +296,7 @@ static int Open(vlc_object_t *p_this) ...@@ -296,7 +296,7 @@ static int Open(vlc_object_t *p_this)
vd->manage = NULL; vd->manage = NULL;
/* Create the associated picture */ /* Create the associated picture */
pictures = calloc(sizeof(*pictures), p_sys->port.i_buffers); pictures = calloc(p_sys->port.i_buffers, sizeof(*pictures));
if (!pictures) if (!pictures)
goto error; goto error;
for (unsigned int i = 0; i < p_sys->port.i_buffers; i++) { for (unsigned int i = 0; i < p_sys->port.i_buffers; i++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment