]> git.sesse.net Git - mlt/commitdiff
Fix memory leak regression introduced in commit 3a419b.
authorDan Dennedy <dan@dennedy.org>
Tue, 7 Sep 2010 00:35:30 +0000 (17:35 -0700)
committerDan Dennedy <dan@dennedy.org>
Tue, 7 Sep 2010 00:35:30 +0000 (17:35 -0700)
src/modules/avformat/filter_swscale.c

index 71972dc4a277ef667d0a7bb5c10d1aa1d6a08448..9af5dc05417c147c196c4f27163c30e30294c4f0 100644 (file)
@@ -172,7 +172,7 @@ static int filter_scale( mlt_frame this, uint8_t **image, mlt_image_format *form
                                context = mlt_properties_get_data( prod_props, "swscale.context2", NULL );
                                new_context = sws_getCachedContext( context, iwidth, iheight, avformat, owidth, oheight, avformat, interp, NULL, NULL, NULL);
                                if ( new_context != context )
-                                       mlt_properties_set_data( properties, "swscale.context2", new_context, 0, NULL, NULL );
+                                       mlt_properties_set_data( prod_props, "swscale.context2", new_context, 0, NULL, NULL );
 
                                avformat = PIX_FMT_GRAY8;
                                avpicture_fill( &input, alpha, avformat, iwidth, iheight );