mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-05 17:16:50 +08:00
fix[h264e_api_v2]: Fix bit_real calc in skip mode
Platform: all Spec: h264e The hw_length is in bytes, but bit_real is in bits. Change-Id: I53428c6347c3f33ad63d2f6dd78daa72b910055f Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
This commit is contained in:
@@ -959,7 +959,7 @@ static MPP_RET h264e_sw_enc(void *ctx, HalEncTask *task)
|
||||
|
||||
task->length += final_len;
|
||||
|
||||
rc_info->bit_real = task->length;
|
||||
rc_info->bit_real = task->length * 8;
|
||||
rc_info->quality_real = rc_info->quality_target;
|
||||
p->dpb.curr->prev_ref_idx = p->frms.refr_idx;
|
||||
mpp_packet_add_segment_info(packet, H264_NALU_TYPE_SLICE, length, final_len);
|
||||
|
Reference in New Issue
Block a user