Skip to content

Commit

Permalink
omxil: fix calloc usage
Browse files Browse the repository at this point in the history
  • Loading branch information
ivoire committed Dec 15, 2013
1 parent 803983e commit 658c51b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/codec/omxil/vout.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ static int Open(vlc_object_t *p_this)
vd->manage = NULL;

/* Create the associated picture */
pictures = calloc(sizeof(*pictures), p_sys->port.i_buffers);
pictures = calloc(p_sys->port.i_buffers, sizeof(*pictures));
if (!pictures)
goto error;
for (unsigned int i = 0; i < p_sys->port.i_buffers; i++) {
Expand Down

0 comments on commit 658c51b

Please sign in to comment.