video: rockchip: mpp: fix rkvenc-core1 cannot disable issue

Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I4884da641a2beba1bdbc2d734d9e969baf9026ad
This commit is contained in:
Yandong Lin
2022-11-08 11:48:00 +08:00
parent 66cc355d8f
commit f9114c28a3

View File

@@ -831,7 +831,7 @@ static void *rkvenc2_prepare(struct mpp_dev *mpp, struct mpp_task *mpp_task)
core_idle = queue->core_idle;
core_id_max = queue->core_id_max;
for (i = 0; i < core_id_max; i++) {
for (i = 0; i <= core_id_max; i++) {
struct mpp_dev *mpp = queue->cores[i];
if (mpp && mpp->disable)