vp10/decoder,resize_mv_buffer: add missing alloc check Change-Id: I8eef989847fcf3c4b9a16b02db477e1007625145
diff --git a/vp10/decoder/decodeframe.c b/vp10/decoder/decodeframe.c index 1c3f182..d750c33 100644 --- 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) {