shithub: libvpx

Download patch

ref: 7370cecd8929141adb8140b924d3dd8ac1887d36
parent: 04db83211cd1607f51155c6a8e51381f45a441a5
author: angiebird <angiebird@google.com>
date: Mon Aug 10 11:37:24 EDT 2020

Close out file in EndEncode()

Change-Id: Ib6549f954ce6d5d966eef09a119b46f0cc2f54f7

--- a/vp9/simple_encode.cc
+++ b/vp9/simple_encode.cc
@@ -959,6 +959,10 @@
   impl_ptr_->cpi = nullptr;
   vpx_img_free(&impl_ptr_->tmp_img);
   rewind(in_file_);
+  if (out_file_ != nullptr) {
+    fclose(out_file_);
+    out_file_ = nullptr;
+  }
 }
 
 void SimpleEncode::UpdateKeyFrameGroup(int key_frame_show_index) {