diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2021-03-15 09:47:43 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2021-09-10 16:04:26 +0200 |
commit | 73947ed459825c0a8442340baa5589bce6642010 (patch) | |
tree | bceab8c86b9f30f00251cdaf3b8424dc2c64e248 /libavutil | |
parent | 79a910c8053cfb2ea227d53347e5315a86de3c38 (diff) | |
download | ffmpeg-73947ed459825c0a8442340baa5589bce6642010.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>
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/internal.h | 2 |
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" /** |