decoder: CB1 fix some crash in peek. [1/1]
authorgan.zhang <gan.zhang@amlogic.com>
Thu, 26 Aug 2021 12:04:14 +0000 (20:04 +0800)
committerMax Zhang <zhangmax@google.com>
Sun, 12 Sep 2021 02:48:05 +0000 (02:48 +0000)
commit76cdbb73eedc8cb2259f52729875710375c33fb8
tree81b2b1030f5857dba45f8d5f4befe8144ce60f37
parentec697b824f434ebf7cdfd059c69255d939933910
decoder: CB1 fix some crash in peek. [1/1]

PD#SWPL-58570

Problem:
When fifo is abnormal, the back-end peek to the wrong data crash.

Solution:
Check whether the fifo is abnormal and return empty when abnormal.

Verify:
adt3

Change-Id: Ie84d4bae905094790af13271ad7bdee9f94ff254
Signed-off-by: gan.zhang <gan.zhang@amlogic.com>
drivers/frame_provider/decoder/avs2/vavs2.c
drivers/frame_provider/decoder/avs_multi/avs_multi.c
drivers/frame_provider/decoder/h264_multi/vmh264.c
drivers/frame_provider/decoder/h265/vh265.c
drivers/frame_provider/decoder/mjpeg/vmjpeg_multi.c
drivers/frame_provider/decoder/mpeg12/vmpeg12_multi.c
drivers/frame_provider/decoder/mpeg4/vmpeg4_multi.c
drivers/frame_provider/decoder/vav1/vav1.c
drivers/frame_provider/decoder/vp9/vvp9.c