]> git.videolan.org Git - x264.git/commitdiff
Add missing fclose for mbtree input statsfile on second pass
authorJason Garrett-Glaser <darkshikari@gmail.com>
Mon, 14 Sep 2009 19:30:38 +0000 (12:30 -0700)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Mon, 14 Sep 2009 19:30:38 +0000 (12:30 -0700)
Bug report by VFRmaniac

encoder/ratecontrol.c

index 64ca6f5d6a9828a9f28b975b38f569c747947dcf..12c6fc53d9a9a37da203cb712fac55be76a1353b 100644 (file)
@@ -841,6 +841,8 @@ void x264_ratecontrol_delete( x264_t *h )
         x264_free( rc->psz_mbtree_stat_file_tmpname );
         x264_free( rc->psz_mbtree_stat_file_name );
     }
+    if( rc->p_mbtree_stat_file_in )
+        fclose( rc->p_mbtree_stat_file_in );
     x264_free( rc->pred );
     x264_free( rc->pred_b_from_p );
     x264_free( rc->entry );