v4l2: fix a h264 decoder issue that exceed max dpb_size [1/1]
authorSong Zhao <song.zhao@amlogic.com>
Tue, 23 Jun 2020 17:26:28 +0000 (10:26 -0700)
committerHui Zhang <hui.zhang@amlogic.com>
Wed, 24 Jun 2020 08:37:54 +0000 (01:37 -0700)
commit62ae5d57bb77d4bb590f32bb2d81676858d1bee8
treefefe265fcb27cbfec868fc417fb22688a549505e
parent9092133627d0c6a01ad3695a76a817c148506db0
v4l2: fix a h264 decoder issue that exceed max dpb_size [1/1]

PD#SWPL-27697

Problem:
There is no buffer while decoder continue to decode.

Solution:
Add more check before run() is called. Patch from Nanxin.

Verify:
U212 + v4l2-vum-test

Change-Id: I64ec1a0d63ad367111bf6984b7d29bec04b65fa0
Signed-off-by: Song Zhao <song.zhao@amlogic.com>
drivers/frame_provider/decoder/h264_multi/vmh264.c