aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2021-03-15 09:47:43 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2021-10-06 14:41:41 +0200
commit135b6f1e2ca46a3701e8a0d3b6754e092f1e3583 (patch)
treec45af963b1fc868a5cc857325fd84c3818aada6c
parentff66fe23638041480b8388d3e4d016307950654f (diff)
downloadffmpeg-135b6f1e2ca46a3701e8a0d3b6754e092f1e3583.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 4acbcf56cb..3a5d1c7bc6 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"
/**