[vlc-commits] omxil: fix calloc usage

Rémi Duraffort git at videolan.org
Sun Dec 15 22:03:31 CET 2013


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sat Dec 14 11:11:30 2013 +0100| [658c51b68be048ed77f45a6beb03bf46625b71a8] | committer: Rémi Duraffort

omxil: fix calloc usage

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=658c51b68be048ed77f45a6beb03bf46625b71a8
---

 modules/codec/omxil/vout.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/omxil/vout.c b/modules/codec/omxil/vout.c
index d0864ae..910c93d 100644
--- a/modules/codec/omxil/vout.c
+++ b/modules/codec/omxil/vout.c
@@ -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++) {



More information about the vlc-commits mailing list