diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2021-03-15 09:47:43 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2021-10-17 21:34:53 +0200 |
commit | f2291bace2cf10fad166868e3799620596a23164 (patch) | |
tree | a1fb4d1cf4943e32d66aab3adc8f9b6ba4f59bb4 | |
parent | b7af5a77ddf0f84a4e9ad86fe24c97e902bd88cc (diff) | |
download | ffmpeg-f2291bace2cf10fad166868e3799620596a23164.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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavutil/internal.h b/libavutil/internal.h index d84b473665..5ff2e4ca51 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -165,6 +165,8 @@ }\ } +#define FF_PTR_ADD(ptr, off) ((off) ? (ptr) + (off) : (ptr)) + #include "libm.h" /** |