diff options
author | Måns Rullgård <mans@mansr.com> | 2008-11-24 09:28:55 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2008-11-24 09:28:55 +0000 |
commit | 4deaa94639148297cef58d35bc25ebcab45e9111 (patch) | |
tree | 03a79a4895415234e3ec75717864a5411eefda01 /libavcodec/mathops.h | |
parent | 8f5aaa6d2fde23d372c80844514103c93088b2f2 (diff) | |
download | ffmpeg-4deaa94639148297cef58d35bc25ebcab45e9111.tar.gz |
Add shift argument to MULL() macro
This replaces use of FRAC_BITS in the MULL() definition with a third
argument specifying the shift amount. All uses of this macro are
updated to pass FRAC_BITS as third argument.
Originally committed as revision 15921 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mathops.h')
-rw-r--r-- | libavcodec/mathops.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mathops.h b/libavcodec/mathops.h index 123fcb76c7..817e4525c7 100644 --- 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 |