]> git.sesse.net Git - mlt/commitdiff
Set the proper size of "image" where known.
authorDan Dennedy <dan@dennedy.org>
Fri, 5 Mar 2010 05:25:19 +0000 (21:25 -0800)
committerDan Dennedy <dan@dennedy.org>
Mon, 24 Jan 2011 02:09:43 +0000 (18:09 -0800)
src/framework/mlt_tractor.c

index 58a75eee8ac690800b868bea0daf8cc217f24678..1a1ca9010c8460fc612e2423a54d7cb491570b86 100644 (file)
@@ -273,7 +273,7 @@ static int producer_get_image( mlt_frame this, uint8_t **buffer, mlt_image_forma
        mlt_properties_set_int( frame_properties, "normalised_width", mlt_properties_get_int( properties, "normalised_width" ) );
        mlt_properties_set_int( frame_properties, "normalised_height", mlt_properties_get_int( properties, "normalised_height" ) );
        mlt_frame_get_image( frame, buffer, format, width, height, writable );
-       mlt_properties_set_data( properties, "image", *buffer, *width * *height * 2, NULL, NULL );
+       mlt_properties_set_data( properties, "image", *buffer, 0, NULL, NULL );
        mlt_properties_set_int( properties, "width", *width );
        mlt_properties_set_int( properties, "height", *height );
        mlt_properties_set_int( properties, "format", *format );