]> git.sesse.net Git - mlt/commitdiff
Fix regression in avcolorspace filter.
authorDan Dennedy <dan@dennedy.org>
Tue, 24 Aug 2010 03:56:25 +0000 (20:56 -0700)
committerDan Dennedy <dan@dennedy.org>
Tue, 24 Aug 2010 03:56:25 +0000 (20:56 -0700)
src/modules/avformat/filter_avcolour_space.c

index 104d8a9782e5b3844ebbdddb6452ebb233acb8ba..e606d802fd52b2161b89b9fdd87e8947d00be91a 100644 (file)
@@ -97,10 +97,12 @@ static void av_convert_image( mlt_properties properties, uint8_t *out, uint8_t *
 #endif
        new_context = sws_getCachedContext( context, width, height, in_fmt,
                width, height, out_fmt, flags, NULL, NULL, NULL);
-       if ( new_context != context )
-               mlt_properties_set_data( properties, "avcolorspace.swscale", new_context, 0, NULL, NULL );
+//     Disable using cached context here due to crashing in libswscale.
+//     if ( new_context != context )
+//             mlt_properties_set_data( properties, "avcolorspace.swscale", new_context, 0, NULL, NULL );
        sws_scale( new_context, input.data, input.linesize, 0, height,
                output.data, output.linesize);
+       sws_freeContext( new_context );
 
 #else
        img_convert( &output, out_fmt, &input, in_fmt, width, height );