]> git.sesse.net Git - mlt/blobdiff - src/framework/mlt_frame.c
Fix crash regression in commit 44be0cb (SF-195).
[mlt] / src / framework / mlt_frame.c
index 1c313fc56bcec552929dac5437065882f4c53371..44df88e80bc4f0f9618f861e792391b2cdd6d530 100644 (file)
@@ -474,7 +474,7 @@ static int generate_test_image( mlt_properties properties, uint8_t **buffer,  ml
                        mlt_properties_set_data( properties, "test_card_producer", NULL, 0, NULL, NULL );
                }
        }
-       if ( error )
+       if ( error && *buffer && *format != mlt_image_none )
        {
                int size = 0;