aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2021-03-15 09:47:43 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2021-09-09 13:53:29 +0200
commitfb9905d7eb3d57c5b06d75ea80af82ef397b39ad (patch)
tree24ac3e78a24be470a8d0c15c72ffc5c76de87c45
parent4779c0ea924e13f66558d02eb42e9f645ac476ab (diff)
downloadffmpeg-fb9905d7eb3d57c5b06d75ea80af82ef397b39ad.tar.gz
avutil/common: Add FF_PTR_ADD()
Suggested-by: Andreas Rheinhardt Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 522a5259e9cc17faf1f83c9cfb93c960a2ecf8a2) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavutil/internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavutil/internal.h b/libavutil/internal.h
index 06bd561e82..2ff87d46a4 100644
--- a/libavutil/internal.h
+++ b/libavutil/internal.h
@@ -173,6 +173,8 @@
}\
}
+#define FF_PTR_ADD(ptr, off) ((off) ? (ptr) + (off) : (ptr))
+
#include "libm.h"
/**