From: Yury Gitman Date: Mon, 22 Aug 2016 21:25:00 +0000 (-0700) Subject: Correct CHECK_MEM_ERROR macro X-Git-Tag: v1.6.1~312 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bf7a02a4cf0ed7f34c92fc3f974d94487cf44c02;p=libvpx Correct CHECK_MEM_ERROR macro The previous macro doesn't work with &cpi->common as a first argument Change-Id: Ic3f5c49a94cf8b17de6569811b957c963341bb58 --- diff --git a/vp9/common/vp9_common.h b/vp9/common/vp9_common.h index 577fa6803..a4111fcfa 100644 --- a/vp9/common/vp9_common.h +++ b/vp9/common/vp9_common.h @@ -51,7 +51,7 @@ static INLINE int get_unsigned_bits(unsigned int num_values) { 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)