media_module: h265 the first frame is different when play many times [1/1]
authorPeng Yixin <yixin.peng@amlogic.com>
Tue, 5 Jan 2021 08:48:21 +0000 (16:48 +0800)
committerYixin Peng <yixin.peng@amlogic.com>
Wed, 6 Jan 2021 13:02:37 +0000 (05:02 -0800)
commit24205b5d232b0a79ad8f52568e7f831eac20cfba
tree10b3d54ff5c54a201deea1230492e67003c4fd23
parentf36858626656fb9a259252400871db35a3cc4ad4
media_module: h265 the first frame is different when play many times [1/1]

PD#SWPL-39208

Problem:
CSD information is discarded mistakenly due to the dirty data found at
the start of playing, cause this problem.

Solution:
When it is found that when the dirty data is more than 1M at start
play, it will not discarded completely, and only half of the data is
discarded to solve this problem.

Verify:
SC2

Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
Change-Id: Ia498f5b97496a7f392fcd5547d088a5224ff6eb0
drivers/frame_provider/decoder/h265/vh265.c