projects
/
platform
/
upstream
/
libvpx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04db832
)
Close out file in EndEncode()
author
angiebird
<angiebird@google.com>
Mon, 10 Aug 2020 22:37:24 +0000
(15:37 -0700)
committer
angiebird
<angiebird@google.com>
Mon, 10 Aug 2020 23:13:16 +0000
(16:13 -0700)
Change-Id: Ib6549f954ce6d5d966eef09a119b46f0cc2f54f7
vp9/simple_encode.cc
patch
|
blob
|
history
diff --git
a/vp9/simple_encode.cc
b/vp9/simple_encode.cc
index
46b25d1
..
ba076fd
100644
(file)
--- a/
vp9/simple_encode.cc
+++ b/
vp9/simple_encode.cc
@@
-959,6
+959,10
@@
void SimpleEncode::EndEncode() {
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) {