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 /libavcodec | |
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 'libavcodec')
-rw-r--r-- | libavcodec/h263.c | 2 | ||||
-rw-r--r-- | libavcodec/libxvidff.c | 4 | ||||
-rw-r--r-- | libavcodec/mpegvideo_enc.c | 2 | ||||
-rw-r--r-- | libavcodec/snow.c | 2 | ||||
-rw-r--r-- | libavcodec/utils.c | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/h263.c b/libavcodec/h263.c index 7b401a42f0..41b4f11eff 100644 --- a/libavcodec/h263.c +++ b/libavcodec/h263.c @@ -5156,7 +5156,7 @@ int h263_decode_picture_header(MpegEncContext *s) av_log(s, AV_LOG_ERROR, "zero framerate\n"); return -1; } - gcd= ff_gcd(s->avctx->time_base.den, s->avctx->time_base.num); + gcd= av_gcd(s->avctx->time_base.den, s->avctx->time_base.num); s->avctx->time_base.den /= gcd; s->avctx->time_base.num /= gcd; // av_log(s->avctx, AV_LOG_DEBUG, "%d/%d\n", s->avctx->time_base.den, s->avctx->time_base.num); diff --git a/libavcodec/libxvidff.c b/libavcodec/libxvidff.c index ac1553f2a8..35104c37cd 100644 --- a/libavcodec/libxvidff.c +++ b/libavcodec/libxvidff.c @@ -557,7 +557,7 @@ void xvid_correct_framerate(AVCodecContext *avctx) { frate = avctx->time_base.den; fbase = avctx->time_base.num; - gcd = ff_gcd(frate, fbase); + gcd = av_gcd(frate, fbase); if( gcd > 1 ) { frate /= gcd; fbase /= gcd; @@ -579,7 +579,7 @@ void xvid_correct_framerate(AVCodecContext *avctx) { } else est_fbase = 1; - gcd = ff_gcd(est_frate, est_fbase); + gcd = av_gcd(est_frate, est_fbase); if( gcd > 1 ) { est_frate /= gcd; est_fbase /= gcd; diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index dc8dd74778..e381598c22 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -464,7 +464,7 @@ av_cold int MPV_encode_init(AVCodecContext *avctx) avctx->b_frame_strategy = 0; } - i= ff_gcd(avctx->time_base.den, avctx->time_base.num); + i= av_gcd(avctx->time_base.den, avctx->time_base.num); if(i > 1){ av_log(avctx, AV_LOG_INFO, "removing common factors from framerate\n"); avctx->time_base.den /= i; diff --git a/libavcodec/snow.c b/libavcodec/snow.c index 0e60d49a01..3f8783be02 100644 --- a/libavcodec/snow.c +++ b/libavcodec/snow.c @@ -4773,7 +4773,7 @@ int main(void){ } error= (int)(sqrt(error)+0.5); errors[level][orientation]= error; - if(g) g=ff_gcd(g, error); + if(g) g=av_gcd(g, error); else g= error; } } diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 0a3773e5ea..74999570da 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -694,7 +694,7 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode) display_aspect_ratio.num, display_aspect_ratio.den); } if(av_log_get_level() >= AV_LOG_DEBUG){ - int g= ff_gcd(enc->time_base.num, enc->time_base.den); + int g= av_gcd(enc->time_base.num, enc->time_base.den); snprintf(buf + strlen(buf), buf_size - strlen(buf), ", %d/%d", enc->time_base.num/g, enc->time_base.den/g); |