ports/multimedia/ffmpeg3/files/patch-libavutil_common.h
Kevin Reinholz 2438c611d7 multimedia/ffmpeg3: New port: Legacy branch of ffmpeg 3.*
To be used exclusively with emulators/ppsspp as newer versions are
incompatible due to how the hardware in the Sony PSP works.
FFmpeg is stripped down to avoid incompatbilities with external
dependencies, only provides static libraries to avoid getting
pull in unintentionally and is statically linked to PPSSPP.

PR:		282188, 282792
2024-11-23 09:42:35 +01:00

13 lines
333 B
C

--- libavutil/common.h.orig 2024-05-15 16:55:52 UTC
+++ libavutil/common.h
@@ -50,6 +50,10 @@
# define AV_NE(be, le) (le)
#endif
+#ifndef UINT64_C
+#define UINT64_C(c) (c ## UL)
+#endif
+
//rounded division & shift
#define RSHIFT(a,b) ((a) > 0 ? ((a) + ((1<<(b))>>1))>>(b) : ((a) + ((1<<(b))>>1)-1)>>(b))
/* assume b>0 */