Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-04-29 23:20:05 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-05-05 13:18:55 +0300
commita0b55e2adbc8c4ffd805b91c0b40f9292675cdcf (patch)
tree21686f60f48b946edb750ae464250b9b6116b200 /libavcodec/a64multienc.c
parent8dbf0cc89330011bbb4b7a34abe3e86bf64859a6 (diff)
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@outlook.com>
Diffstat (limited to 'libavcodec/a64multienc.c')
-rw-r--r--libavcodec/a64multienc.c2
1 files changed, 1 insertions, 1 deletions
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);