mirror of
https://git.freebsd.org/ports.git
synced 2025-06-19 03:30:32 -04:00
Mainly for leaf consumers: applications but not plugins or libraries.
Otherwise, indirectly mixing different versions of ffmpeg libraries at
runtime can lead to crashes.
To use simply add the following before <bsd.port.mk> or <bsd.port.pre.mk>
.include "${.CURDIR:H:H}/multimedia/ffmpeg4/override.mk"
PR: 261302
Inspired by: c717faa5c7
13 lines
331 B
C
13 lines
331 B
C
--- libavutil/common.h.orig 2015-06-19 20:44:53 UTC
|
|
+++ libavutil/common.h
|
|
@@ -49,6 +49,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 */
|