[FFmpeg-cvslog] avcodec/a64multienc: Don't modify AVCodecContext.global_quality

Andreas Rheinhardt git at videolan.org
Wed May 5 15:37:33 EEST 2021


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Thu Apr 29 22:20:05 2021 +0200| [a0b55e2adbc8c4ffd805b91c0b40f9292675cdcf] | committer: Andreas Rheinhardt

avcodec/a64multienc: Don't modify AVCodecContext.global_quality

According to the doxy, this field is set by the user.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a0b55e2adbc8c4ffd805b91c0b40f9292675cdcf
---

 libavcodec/a64multienc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/a64multienc.c b/libavcodec/a64multienc.c
index 1b52631193..ad2500e41a 100644
--- a/libavcodec/a64multienc.c
+++ b/libavcodec/a64multienc.c
@@ -210,7 +210,7 @@ static av_cold int a64multi_encode_init(AVCodecContext *avctx)
     if (avctx->global_quality < 1) {
         c->mc_lifetime = 4;
     } else {
-        c->mc_lifetime = avctx->global_quality /= FF_QP2LAMBDA;
+        c->mc_lifetime = avctx->global_quality / FF_QP2LAMBDA;
     }
 
     av_log(avctx, AV_LOG_INFO, "charset lifetime set to %d frame(s)\n", c->mc_lifetime);



More information about the ffmpeg-cvslog mailing list