diff --git a/mpp/codec/mpp_dec.cpp b/mpp/codec/mpp_dec.cpp index b10294d4..02453471 100644 --- a/mpp/codec/mpp_dec.cpp +++ b/mpp/codec/mpp_dec.cpp @@ -328,6 +328,7 @@ MPP_RET mpp_dec_init(MppDec **dec, MppCodingType coding) MppHalCfg hal_cfg = { MPP_CTX_DEC, coding, + p->slots, NULL, parser_cfg.task_count, }; diff --git a/mpp/hal/inc/mpp_hal.h b/mpp/hal/inc/mpp_hal.h index 8a0be49e..4251c216 100644 --- a/mpp/hal/inc/mpp_hal.h +++ b/mpp/hal/inc/mpp_hal.h @@ -19,6 +19,7 @@ #include "rk_mpi.h" #include "hal_task.h" +#include "mpp_buf_slot.h" typedef void* MppHalCtx; @@ -26,6 +27,7 @@ typedef struct MppHalCfg_t { // input MppCtxType type; MppCodingType coding; + MppBufSlots slots; // output HalTaskGroup tasks;