media_module: mpeg2 discard dirty data [1/1]
authorPeng Yixin <yixin.peng@amlogic.com>
Thu, 26 Nov 2020 12:41:57 +0000 (20:41 +0800)
committerHui Zhang <hui.zhang@amlogic.com>
Mon, 30 Nov 2020 03:10:22 +0000 (19:10 -0800)
commit6bdc30f9cf62c039d3f15be4c4c13df18ca5d37f
tree92bfe130333e9355c24bfbe2f552dfe39de07f6b
parent2eca581bafd783fc0b419ea27402b8b5ac5e31a5
media_module: mpeg2 discard dirty data [1/1]

PD#SWPL-37142

Problem:
Due to a lot of dirty data sent by demux, the decoder
could not decode and the data was overflowed, cause
out of sync.

Solution:
Adding code to discard dirty data solves this problem

Verify:
SC2

Change-Id: I53c53441afe5768c74239ae8ef0fc7df7f343db0
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
drivers/frame_provider/decoder/mpeg12/vmpeg12_multi.c
drivers/frame_provider/decoder/utils/vdec.c
drivers/frame_provider/decoder/utils/vdec.h