[x264-devel] commit: Add missing fclose for mbtree input statsfile on second pass ( Jason Garrett-Glaser )

git version control git at videolan.org
Mon Sep 14 22:00:05 CEST 2009


x264 | branch: master | Jason Garrett-Glaser <darkshikari at gmail.com> | Mon Sep 14 12:30:38 2009 -0700| [dd026f296748ef370f1651fdbddec6d9238c6cc0] | committer: Jason Garrett-Glaser 

Add missing fclose for mbtree input statsfile on second pass
Bug report by VFRmaniac

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=dd026f296748ef370f1651fdbddec6d9238c6cc0
---

 encoder/ratecontrol.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/encoder/ratecontrol.c b/encoder/ratecontrol.c
index 64ca6f5..12c6fc5 100644
--- a/encoder/ratecontrol.c
+++ b/encoder/ratecontrol.c
@@ -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 );



More information about the x264-devel mailing list