diff mbox series

[FFmpeg-devel,02/46] avcodec/a64multienc: Don't modify AVCodecContext.global_quality

Message ID HE1PR0301MB21549D4F53E2424DEDC5E56B8F5F9@HE1PR0301MB2154.eurprd03.prod.outlook.com
State Accepted
Commit a0b55e2adbc8c4ffd805b91c0b40f9292675cdcf
Headers show
Series [FFmpeg-devel,01/46] avcodec/a64multienc: Avoid intermediate buffer
Related show

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Andreas Rheinhardt April 29, 2021, 11:56 p.m. UTC
According to the doxy, this field is set by the user.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/a64multienc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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);