]> git.sesse.net Git - mlt/commitdiff
Fix frames with test_image in opengl filters.
authorDan Dennedy <dan@dennedy.org>
Sun, 24 Mar 2013 07:00:18 +0000 (00:00 -0700)
committerDan Dennedy <dan@dennedy.org>
Sun, 24 Mar 2013 07:00:18 +0000 (00:00 -0700)
src/modules/opengl/filter_movit_crop.cpp

index d56eefe1cc9736af1ec45541a807bdebb4869aa5..2927f6bd9eab3b2a83a291ef6594ba03e9f902f9 100644 (file)
@@ -51,6 +51,8 @@ static int get_image( mlt_frame frame, uint8_t **image, mlt_image_format *format
        // Get the image as requested
 //     *format = (mlt_image_format) mlt_properties_get_int( MLT_PRODUCER_PROPERTIES(producer), "_movit image_format" );
        *format = mlt_image_none;
+       if ( mlt_properties_get_int( properties, "test_image" ) )
+               *format = mlt_image_yuv422;
        error = mlt_frame_get_image( frame, image, format, width, height, writable );
 
        // Skip processing if requested.