ref: 429d61252dcc4ec71dea073551cb4699a2dfd84d
parent: 5d233390dbf9a43246192c43464c4507f6a58e99
author: James Zern <[email protected]>
date: Wed Feb 17 09:26:16 EST 2016
vp10/decoder,resize_mv_buffer: add missing alloc check Change-Id: I8eef989847fcf3c4b9a16b02db477e1007625145
--- a/vp10/decoder/decodeframe.c
+++ b/vp10/decoder/decodeframe.c
@@ -1195,8 +1195,9 @@
vpx_free(cm->cur_frame->mvs);
cm->cur_frame->mi_rows = cm->mi_rows;
cm->cur_frame->mi_cols = cm->mi_cols;
- cm->cur_frame->mvs = (MV_REF *)vpx_calloc(cm->mi_rows * cm->mi_cols,
- sizeof(*cm->cur_frame->mvs));
+ CHECK_MEM_ERROR(cm, cm->cur_frame->mvs,
+ (MV_REF *)vpx_calloc(cm->mi_rows * cm->mi_cols,
+ sizeof(*cm->cur_frame->mvs)));
}
static void resize_context_buffers(VP10_COMMON *cm, int width, int height) {