mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-18 23:14:35 +08:00
[rc]: fix frame count
acc_total_count will be set to 0 when a new gop start. use acc_intra_count+acc_inter_count instead of it. Change-Id: I14b1c75954f5994eb150d1f0ff7d822a74ed2359 Signed-off-by: Jung Zhao <jung.zhao@rock-chips.com>
This commit is contained in:
@@ -458,7 +458,7 @@ MPP_RET mpp_rc_update_hw_result(MppRateControl *ctx, RcHalResult *result)
|
||||
ctx->last_fps_bits += bits;
|
||||
|
||||
/* new fps start */
|
||||
if (ctx->acc_total_count % ctx->fps_out == 0) {
|
||||
if ((ctx->acc_intra_count + ctx->acc_inter_count) % ctx->fps_out == 0) {
|
||||
mpp_pid_update(&ctx->pid_fps, ctx->bps_target - ctx->last_fps_bits);
|
||||
ctx->last_fps_bits = 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user