# HG changeset patch # User aurel # Date 1233017178 0 # Node ID f9884e1112d005610a08d22aad9c61c0032fea0a # Parent f7f8673fbfb0428327d6629c1599074a9cc50ee5 add a ff_gcd() function again, for compatibility with old libavcodec diff -r f7f8673fbfb0 -r f9884e1112d0 mathematics.c --- a/mathematics.c Mon Jan 26 11:15:47 2009 +0000 +++ b/mathematics.c Tue Jan 27 00:46:18 2009 +0000 @@ -24,6 +24,7 @@ */ #include +#include "avutil.h" #include "common.h" #include "mathematics.h" @@ -54,6 +55,12 @@ 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);