PD#SWPL-39398
Problem:
Due to some errors, the frame status is incorrect,
causing the decoder to get stuck.
Solution:
Set it to 0 when the use index is abnormal to avoid getting stuck.
Verify:
AH212
Change-Id: I6048fcf2bed99c39012ebce9339bdd87cf4ae78c
Signed-off-by: miaohong chen <miaohong.chen@amlogic.com>
hw->vfbuf_use[vf->index]--;
if (hw->vfbuf_use[vf->index] < 0) {
debug_print(DECODE_ID(hw), PRINT_FLAG_ERROR,
- "warn: vf %lx, index %d putback repetitive\n", (ulong)vf, vf->index);
+ "warn: vf %lx, index %d putback repetitive, set use to 0\n", (ulong)vf, vf->index);
+ hw->vfbuf_use[vf->index] = 0;
}
hw->put_num++;
debug_print(DECODE_ID(hw), PRINT_FLAG_RUN_FLOW,