fix[test]: Fix mpi_enc_mt_test error

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I7a566766972e8e279f48ac4b6f9dc54195ba1ea5
This commit is contained in:
Herman Chen
2023-11-29 10:15:24 +08:00
parent 6ce3007994
commit 5fbde2b49e

View File

@@ -717,10 +717,10 @@ void *enc_test_input(void *arg)
} else {
if (p->cam_ctx == NULL) {
ret = MPP_OK;
// ret = fill_image((RK_U8 *)buf, p->width, p->height, p->hor_stride,
// p->ver_stride, p->fmt, p->frm_cnt_in);
// if (ret)
// break;
ret = fill_image((RK_U8 *)buf, p->width, p->height, p->hor_stride,
p->ver_stride, p->fmt, p->frm_cnt_in);
if (ret)
break;
} else {
cam_frm_idx = camera_source_get_frame(p->cam_ctx);
mpp_assert(cam_frm_idx >= 0);