Mercurial > libavutil.hg
changeset 632:f9884e1112d0 libavutil
add a ff_gcd() function again, for compatibility with old libavcodec
author | aurel |
---|---|
date | Tue, 27 Jan 2009 00:46:18 +0000 |
parents | f7f8673fbfb0 |
children | 8c48a1b999a3 |
files | mathematics.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 <assert.h> +#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);