mpeg2: Optimize frame put strategy [1/1]
authormiaohong chen <miaohong.chen@amlogic.com>
Fri, 8 Jan 2021 07:03:12 +0000 (15:03 +0800)
committerMiaohong Chen <miaohong.chen@amlogic.com>
Wed, 13 Jan 2021 11:05:45 +0000 (03:05 -0800)
commit92651b6529432c02047fc5ec1dfe6e4f9191f962
tree5c4e504d794b267c2d4d0a52472b98b5212f6b0c
parented38f8c382cdf45604b126f43508bc41e4da2128
mpeg2: Optimize frame put strategy [1/1]

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>
drivers/frame_provider/decoder/mpeg12/vmpeg12_multi.c