shithub: libvpx

Download patch

ref: 71c8e0c009ef2ce3c1a170cbdba130c86de7a095
parent: 1b0fc6a5d6a94af81759a4867fbcc6b32ad7663d
parent: 7370cecd8929141adb8140b924d3dd8ac1887d36
author: Angie Chiang <angiebird@google.com>
date: Mon Nov 23 21:49:12 EST 2020

Merge "Close out file in EndEncode()"

--- a/vp9/simple_encode.cc
+++ b/vp9/simple_encode.cc
@@ -1078,6 +1078,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) {