video: hold frame for non-tunnel mode [1/1]
PD#SWPL-6179
Problem:
PLAY-AL1-30FPS-HEAAC exist multi short frame every 16.6s
Solution:
Hold one frame in case occur pattern broken. Problem occur as this,
for non-tunnel mode, amlvideo vidioc_dqbuf in omx so fast, then lead
decoder buffer quickly pushed to amlvideo queue with only current frame,
without next frame. Hold one frame we need next frame and next frame pts
after next frame, here we use next frame pts and a crease with duraion
as next next frame pts.
Verify:
verify by u212
Change-Id: Ie98c30791e785abb886aa19a7e930d191f5c2b3e
Signed-off-by: shuanglong.wang <shuanglong.wang@amlogic.com>