]> git.sesse.net Git - mlt/blobdiff - src/framework/mlt_frame.c
Fix calloc() parameter ordering
[mlt] / src / framework / mlt_frame.c
index d1e0373654ec8d70d6ae68ad3031237203354712..c05aebb18ab81c938858b8648b1caf45fc3fb7e5 100644 (file)
@@ -41,7 +41,7 @@
 mlt_frame mlt_frame_init( mlt_service service )
 {
        // Allocate a frame
-       mlt_frame self = calloc( sizeof( struct mlt_frame_s ), 1 );
+       mlt_frame self = calloc( 1, sizeof( struct mlt_frame_s ) );
 
        if ( self != NULL )
        {