aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2025-03-19 21:55:34 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2025-03-26 04:13:24 +0100
commit46a2d03b7582d27a1bd498d42ad49268adfa74d0 (patch)
tree26ef1fe2243e652053cb826e0ed8e143e151dc51
parentd5fba4aef9feb949f7ece3e35ccbf184a3be27e8 (diff)
downloadffmpeg-46a2d03b7582d27a1bd498d42ad49268adfa74d0.tar.gz
avcodec/mpegvideo_enc: Use better variable name
Also fixes shadowing. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavcodec/mpegvideo_enc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index 65a466500c..29968cde49 100644
--- a/libavcodec/mpegvideo_enc.c
+++ b/libavcodec/mpegvideo_enc.c
@@ -533,7 +533,7 @@ av_cold int ff_mpv_encode_init(AVCodecContext *avctx)
MPVMainEncContext *const m = avctx->priv_data;
MPVEncContext *const s = &m->s;
AVCPBProperties *cpb_props;
- int i, ret;
+ int gcd, ret;
mpv_encode_defaults(m);
@@ -817,11 +817,11 @@ av_cold int ff_mpv_encode_init(AVCodecContext *avctx)
m->b_frame_strategy = 0;
}
- i = av_gcd(avctx->time_base.den, avctx->time_base.num);
- if (i > 1) {
+ gcd = av_gcd(avctx->time_base.den, avctx->time_base.num);
+ if (gcd > 1) {
av_log(avctx, AV_LOG_INFO, "removing common factors from framerate\n");
- avctx->time_base.den /= i;
- avctx->time_base.num /= i;
+ avctx->time_base.den /= gcd;
+ avctx->time_base.num /= gcd;
//return -1;
}