ref: 9065da983fa22e7b34f8fe95def38d72283e36de
parent: 7cb7588b1e548b6bab7d4be810876af6cfc7539a
parent: 979ee6e4c994e851988d2625d5c93532e8168129
author: Adrian Grange <[email protected]>
date: Thu Dec 4 02:08:37 EST 2014
Merge "Free motion vector array before re-allocating"
--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -2476,6 +2476,7 @@
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));