git.videolan.org
/
ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add shift argument to MULL() macro
[ffmpeg.git]
/
libavcodec
/
mathops.h
diff --git
a/libavcodec/mathops.h
b/libavcodec/mathops.h
index
123fcb7
..
817e452
100644
(file)
--- a/
libavcodec/mathops.h
+++ b/
libavcodec/mathops.h
@@
-45,7
+45,7
@@
/* generic implementation */
#ifndef MULL
-# define MULL(a,b
) (((int64_t)(a) * (int64_t)(b)) >> FRAC_BITS
)
+# define MULL(a,b
,s) (((int64_t)(a) * (int64_t)(b)) >> (s)
)
#endif
#ifndef MULH