]> git.sesse.net Git - mlt/commitdiff
fix video glitch seen with multi consumer
authorDan Dennedy <dan@dennedy.org>
Mon, 21 Nov 2011 06:33:09 +0000 (22:33 -0800)
committerDan Dennedy <dan@dennedy.org>
Mon, 21 Nov 2011 06:33:09 +0000 (22:33 -0800)
src/modules/core/filter_resize.c

index 3ba73ce29929ed9d0349a037bf6315feb2a356de..0c5d64ec7e8690f65c1734228a3a8ff47e5dd7fb 100644 (file)
@@ -285,10 +285,10 @@ static int filter_get_image( mlt_frame this, uint8_t **image, mlt_image_format *
                {
                        // Get the input image, width and height
                        uint8_t *new_image = mlt_pool_alloc( size );
-                       mlt_frame_set_image( this, new_image, size, mlt_pool_release );
                        uint8_t *ptr = new_image + owidth * bpp;
                        memcpy( new_image, *image, owidth * bpp );
                        memcpy( ptr, *image, owidth * ( oheight - 1 ) * bpp );
+                       mlt_frame_set_image( this, new_image, size, mlt_pool_release );
                        *image = new_image;
                        
                        // Set the normalised field order