mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-03 14:32:16 +02:00
lavc/libxavs2: use upper layer qp parameters first
Signed-off-by: hwrenx <hwrenx@126.com>
This commit is contained in:
parent
8754147db6
commit
11751f6252
@ -109,8 +109,8 @@ static av_cold int xavs2_init(AVCodecContext *avctx)
|
||||
xavs2_opt_set2("RateControl", "%d", 1);
|
||||
xavs2_opt_set2("TargetBitRate", "%"PRId64"", avctx->bit_rate);
|
||||
xavs2_opt_set2("InitialQP", "%d", cae->initial_qp);
|
||||
xavs2_opt_set2("MaxQP", "%d", cae->max_qp);
|
||||
xavs2_opt_set2("MinQP", "%d", cae->min_qp);
|
||||
xavs2_opt_set2("MaxQP", "%d", avctx->qmax >= 0 ? avctx->qmax : cae->max_qp);
|
||||
xavs2_opt_set2("MinQP", "%d", avctx->qmin >= 0 ? avctx->qmin : cae->min_qp);
|
||||
} else {
|
||||
xavs2_opt_set2("InitialQP", "%d", cae->qp);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user