Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2021-03-15 11:47:43 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2021-09-10 17:04:26 +0300
commit73947ed459825c0a8442340baa5589bce6642010 (patch)
treebceab8c86b9f30f00251cdaf3b8424dc2c64e248 /libavutil
parent79a910c8053cfb2ea227d53347e5315a86de3c38 (diff)
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>
Diffstat (limited to 'libavutil')
-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"
/**