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:
73caef0
)
Free motion vector array before re-allocating
author
Adrian Grange
<agrange@google.com>
Tue, 2 Dec 2014 00:05:22 +0000
(16:05 -0800)
committer
Gerrit Code Review
<gerrit@gerrit.golo.chromium.org>
Thu, 4 Dec 2014 00:07:32 +0000
(16:07 -0800)
Change-Id: I0c39136d67e1e83020d61f86b062a04182ec9b00
vp9/encoder/vp9_encoder.c
patch
|
blob
|
history
diff --git
a/vp9/encoder/vp9_encoder.c
b/vp9/encoder/vp9_encoder.c
index
ba6ac1d
..
4d902fd
100644
(file)
--- a/
vp9/encoder/vp9_encoder.c
+++ b/
vp9/encoder/vp9_encoder.c
@@
-2476,6
+2476,7
@@
void vp9_scale_references(VP9_COMP *cpi) {
if (cm->frame_bufs[new_fb].mvs == NULL ||
cm->frame_bufs[new_fb].mi_rows < cm->mi_rows ||
cm->frame_bufs[new_fb].mi_cols < cm->mi_cols) {
+ vpx_free(cm->frame_bufs[new_fb].mvs);
cm->frame_bufs[new_fb].mvs =
(MV_REF *)vpx_calloc(cm->mi_rows * cm->mi_cols,
sizeof(*cm->frame_bufs[new_fb].mvs));