media_module: h264 Update the ref queue correctly [1/1]
authorPeng Yixin <yixin.peng@amlogic.com>
Mon, 30 Dec 2019 16:24:00 +0000 (00:24 +0800)
committerHui Zhang <hui.zhang@amlogic.com>
Tue, 7 Jan 2020 10:47:13 +0000 (02:47 -0800)
commit6933cd86d1d664d20e8a26069f29f9642bb41b2a
tree3835d9b0789336335c503aa5c19169c752bb2106
parent7cf525309950089d56b208e6467a1e0af9337238
media_module: h264 Update the ref queue correctly [1/1]

PD#OTT-7782

Problem:
When there is some error data in the stream, the error ref frame is
forced to be released. Since the list of ref frames is not updated,
decoder driver thinks that the DPB buffer is incorrect and the entire
DPB queue to be cleared, result frame drop.

Solution:
This problem is resolved by updating the list of refs when the
incorrect ref frames are removed to dpb queue.

Verify:
u212

Change-Id: I754434ae1daaaf8df56e9efc10233ca7725df86e
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
drivers/frame_provider/decoder/h264_multi/h264_dpb.c