]> granicus.if.org Git - libx264/commitdiff
Add missing fclose for mbtree input statsfile on second pass
authorFiona Glaser <fiona@x264.com>
Mon, 14 Sep 2009 19:30:38 +0000 (12:30 -0700)
committerFiona Glaser <fiona@x264.com>
Mon, 14 Sep 2009 19:30:38 +0000 (12:30 -0700)
Bug report by VFRmaniac

encoder/ratecontrol.c

index b11c7c4357f3ae98ce2f871d26a98c73d4058f84..6944a50d635f08901460395cae53b668a679ee02 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 );