ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinha...@outlook.com> | Wed Mar 19 21:55:34 2025 +0100| [46a2d03b7582d27a1bd498d42ad49268adfa74d0] | committer: Andreas Rheinhardt
avcodec/mpegvideo_enc: Use better variable name Also fixes shadowing. Signed-off-by: Andreas Rheinhardt <andreas.rheinha...@outlook.com> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=46a2d03b7582d27a1bd498d42ad49268adfa74d0 --- libavcodec/mpegvideo_enc.c | 10 +++++----- 1 file 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; } _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".