[hal_h264e]: Fix amend buf_size set to zero issue

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: Id8e4d28d2b6967a26d693bd41e4ba3491c5fff38
This commit is contained in:
Herman Chen
2022-11-09 14:46:43 +08:00
parent d77f5574f7
commit e3af01ac76

View File

@@ -108,7 +108,7 @@ MPP_RET h264e_vepu_stream_amend_config(HalH264eVepuStreamAmend *ctx,
} else {
MPP_FREE(ctx->dst_buf);
MPP_FREE(ctx->src_buf);
memset(ctx, 0, sizeof(*ctx));
h264e_vepu_stream_amend_init(ctx);
}
slice->pic_order_cnt_type = cfg->codec.h264.poc_type;