diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2009-01-27 00:46:18 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2009-01-27 00:46:18 +0000 |
commit | eded5c4309da82f84dee4b524f3b70646c3bb7bc (patch) | |
tree | f5394916d4669761790e7de450278a814cc7a43f /libavutil | |
parent | 73c87551e57d66da1ea6bfa2dfff45ca6cdda540 (diff) | |
download | ffmpeg-eded5c4309da82f84dee4b524f3b70646c3bb7bc.tar.gz |
add a ff_gcd() function again, for compatibility with old libavcodec
Originally committed as revision 16814 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/mathematics.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavutil/mathematics.c b/libavutil/mathematics.c index 8b37cf20fd..91ade22571 100644 --- a/libavutil/mathematics.c +++ b/libavutil/mathematics.c @@ -24,6 +24,7 @@ */ #include <assert.h> +#include "avutil.h" #include "common.h" #include "mathematics.h" @@ -54,6 +55,12 @@ int64_t av_gcd(int64_t a, int64_t b){ else return a; } +#if LIBAVUTIL_VERSION_MAJOR < 50 +int64_t ff_gcd(int64_t a, int64_t b){ + return av_gcd(a, b); +} +#endif + int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding rnd){ int64_t r=0; assert(c > 0); |