From 12fb5d398fabb83226bd6d2a1e027dbf63dda1b9 Mon Sep 17 00:00:00 2001 From: ChenSiyong Date: Thu, 19 May 2016 12:57:12 +0000 Subject: [PATCH] [mpp_dec] clr current frame status when reset come but current frame in wait dec pic status git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@787 6e48237b-75ef-9749-8fc9-41990f28c85a --- mpp/codec/mpp_dec.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mpp/codec/mpp_dec.cpp b/mpp/codec/mpp_dec.cpp index f75596e2..d6eac768 100644 --- a/mpp/codec/mpp_dec.cpp +++ b/mpp/codec/mpp_dec.cpp @@ -185,6 +185,15 @@ static RK_U32 reset_dec_task(Mpp *mpp, DecTask *task) mpp_buf_slot_reset(frame_slots, task_dec->output); } + if(task->status.task_parsed_rdy){ + mpp_log("task no send to hal que must clr current frame hal status"); + mpp_buf_slot_clr_flag(frame_slots, task_dec->output, SLOT_HAL_OUTPUT); + for (RK_U32 i = 0; i < MPP_ARRAY_ELEMS(task_dec->refer); i++) { + RK_S32 index = task_dec->refer[i]; + if (index >= 0) + mpp_buf_slot_clr_flag(frame_slots, index, SLOT_HAL_INPUT); + } + } if (dec->mpp_pkt_in) { mpp_packet_deinit(&dec->mpp_pkt_in); dec->mpp_pkt_in = NULL;