ref: bf7a02a4cf0ed7f34c92fc3f974d94487cf44c02
parent: f5bd76f5c1b56bcb0e38063daff0c3a604ac420a
author: Yury Gitman <yuryg@google.com>
date: Mon Aug 22 10:25:00 EDT 2016
Correct CHECK_MEM_ERROR macro The previous macro doesn't work with &cpi->common as a first argument Change-Id: Ic3f5c49a94cf8b17de6569811b957c963341bb58
--- a/vp9/common/vp9_common.h
+++ b/vp9/common/vp9_common.h
@@ -51,7 +51,7 @@
do { \
lval = (expr); \
if (!lval) \
- vpx_internal_error(&cm->error, VPX_CODEC_MEM_ERROR, \
+ vpx_internal_error(&(cm)->error, VPX_CODEC_MEM_ERROR, \
"Failed to allocate " #lval " at %s:%d", __FILE__, \
__LINE__); \
} while (0)