diff --git a/mpp/codec/enc/h264/h264e_api_v2.c b/mpp/codec/enc/h264/h264e_api_v2.c index 76702482..c0cae07a 100644 --- a/mpp/codec/enc/h264/h264e_api_v2.c +++ b/mpp/codec/enc/h264/h264e_api_v2.c @@ -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);