]> git.sesse.net Git - mlt/blobdiff - src/modules/avformat/consumer_avformat.c
Fix a few problems with YCbCr colorspace conversion.
[mlt] / src / modules / avformat / consumer_avformat.c
index 33b3a93f983e05597ae0830be5ae0503cfc41924..72dcaea75c11be91be23fb13b9dc070d86585b00 100644 (file)
@@ -2150,7 +2150,10 @@ static void *consumer_thread( void *arg )
        }
 
 on_fatal_error:
-       
+
+       if ( frame )
+               mlt_frame_close( frame );
+
        // Write the trailer, if any
        if ( frames )
                av_write_trailer( oc );