mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
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>
This commit is contained in:
parent
8dbf0cc893
commit
a0b55e2adb
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user