mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 02:21:11 +01:00
fixup! lavc/rkmppenc: add RKMPP H264 and HEVC encoder
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
This commit is contained in:
parent
6f88a29491
commit
09cd2a2d18
1 changed files with 1 additions and 0 deletions
|
|
@ -451,6 +451,7 @@ static int rkmpp_set_enc_cfg(AVCodecContext *avctx)
|
|||
qp_init = r->qp_init >= 1 ? r->qp_init : 80;
|
||||
qp_max = r->qp_max >= 1 ? r->qp_max : 99;
|
||||
qp_min = r->qp_min >= 1 ? r->qp_min : 1;
|
||||
qp_max_i = qp_min_i = 0;
|
||||
/* jpeg use special codec config to control qtable */
|
||||
mpp_enc_cfg_set_s32(cfg, "jpeg:q_factor", qp_init);
|
||||
mpp_enc_cfg_set_s32(cfg, "jpeg:qf_max", qp_max);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue