diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2009-01-17 11:13:33 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2009-01-17 11:13:33 +0000 |
commit | 9ce6c1387988bf3cdb631f3844e99a0c9bea43f2 (patch) | |
tree | bba423b9738e537a19c595ea0d78537dbe540991 /libavutil/rational.c | |
parent | 3194b004793b31b89445e7a15d06c9e4acbd2e55 (diff) | |
download | ffmpeg-9ce6c1387988bf3cdb631f3844e99a0c9bea43f2.tar.gz |
export gcd function as av_gcd()
Originally committed as revision 16653 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/rational.c')
-rw-r--r-- | libavutil/rational.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/rational.c b/libavutil/rational.c index cac3ff5a99..4c0216e60f 100644 --- a/libavutil/rational.c +++ b/libavutil/rational.c @@ -35,7 +35,7 @@ int av_reduce(int *dst_nom, int *dst_den, int64_t nom, int64_t den, int64_t max){ AVRational a0={0,1}, a1={1,0}; int sign= (nom<0) ^ (den<0); - int64_t gcd= ff_gcd(FFABS(nom), FFABS(den)); + int64_t gcd= av_gcd(FFABS(nom), FFABS(den)); if(gcd){ nom = FFABS(nom)/gcd; @@ -66,7 +66,7 @@ int av_reduce(int *dst_nom, int *dst_den, int64_t nom, int64_t den, int64_t max) nom= den; den= next_den; } - assert(ff_gcd(a1.num, a1.den) <= 1U); + assert(av_gcd(a1.num, a1.den) <= 1U); *dst_nom = sign ? -a1.num : a1.num; *dst_den = a1.den; |