Index: patched-ffmpeg-mt/libavcodec/mathops.h |
=================================================================== |
--- patched-ffmpeg-mt/libavcodec/mathops.h (revision 41250) |
+++ patched-ffmpeg-mt/libavcodec/mathops.h (working copy) |
@@ -122,6 +122,13 @@ |
} |
#endif |
+#ifndef zero_extend |
+static inline av_const unsigned zero_extend(unsigned val, unsigned bits) |
+{ |
+ return (val << (INT_BIT - bits)) >> (INT_BIT - bits); |
+} |
+#endif |
+ |
#ifndef COPY3_IF_LT |
#define COPY3_IF_LT(x, y, a, b, c, d)\ |
if ((y) < (x)) {\ |
@@ -131,5 +138,13 @@ |
} |
#endif |
+#ifndef NEG_SSR32 |
+# define NEG_SSR32(a,s) ((( int32_t)(a))>>(32-(s))) |
+#endif |
+ |
+#ifndef NEG_USR32 |
+# define NEG_USR32(a,s) (((uint32_t)(a))>>(32-(s))) |
+#endif |
+ |
#endif /* AVCODEC_MATHOPS_H */ |