feat[kmpp]: Set chan_fd to init cfg

Depend on the commit:
270375: feat[kmpp_venc_objs]: Add chan_fd to init cfg | https://10.10.10.29/c/rk/mpp/+/270375

Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I5d174695f023cf306e7f4df59243d21f255c2bc3
This commit is contained in:
Yandong Lin
2025-07-31 16:19:22 +08:00
parent ac16b2c63e
commit 8dcf903d9e

View File

@@ -103,6 +103,7 @@ static MPP_RET init(Kmpp *ctx, MppCtxType type, MppCodingType coding)
hnd = kmpp_obj_to_shm(ctx->mVencInitKcfg);
size = kmpp_obj_to_shm_size(ctx->mVencInitKcfg);
kmpp_obj_get_u32(ctx->mVencInitKcfg, "chan_dup", &ctx->mChanDup);
kmpp_obj_set_s32(ctx->mVencInitKcfg, "chan_fd", ctx->mClientFd);
ret = mpp_vcodec_ioctl(ctx->mClientFd, VCODEC_CHAN_CREATE, 0, size, hnd);
if (ret) {