shithub: libvpx

Download patch

ref: c325fb748a6c395ccca392e1fb5dadefb32a1cec
parent: f6c5410cd407a0e956edef406826baa3719b8cb2
author: Yury Gitman <[email protected]>
date: Mon Aug 22 14:52:44 EDT 2016

Correct CHECK_MEM_ERROR macro (release builds)

The previous macro doesn't work with &cpi->common as a first argument

Change-Id: Iddf7a1f5d56d7abafd9b2b8707aa611d349e7a68

--- a/vp9/common/vp9_common.h
+++ b/vp9/common/vp9_common.h
@@ -56,12 +56,12 @@
                          __LINE__);                                         \
   } while (0)
 #else
-#define CHECK_MEM_ERROR(cm, lval, expr)                   \
-  do {                                                    \
-    lval = (expr);                                        \
-    if (!lval)                                            \
-      vpx_internal_error(&cm->error, VPX_CODEC_MEM_ERROR, \
-                         "Failed to allocate " #lval);    \
+#define CHECK_MEM_ERROR(cm, lval, expr)                     \
+  do {                                                      \
+    lval = (expr);                                          \
+    if (!lval)                                              \
+      vpx_internal_error(&(cm)->error, VPX_CODEC_MEM_ERROR, \
+                         "Failed to allocate " #lval);      \
   } while (0)
 #endif