h264: stream mode vpts lookup fail [1/1]
authorPeng Yixin <yixin.peng@amlogic.com>
Thu, 12 Nov 2020 06:20:56 +0000 (14:20 +0800)
committerHui Zhang <hui.zhang@amlogic.com>
Fri, 25 Dec 2020 11:21:04 +0000 (03:21 -0800)
commitb0424c3f32c05aa36abdf90251b8e96d59ff2681
tree84c60b1e5b6dd3d4348cd0621ec1a3c785da5786
parentf4ee88db4efb17a46abcfda29d0a11b156d104e7
h264: stream mode vpts lookup fail [1/1]

PD#SWPL-35520

Problem:
Because the stream will checkin one vpts every three frames, and some
of the frames size is small, it will cause lookup pts is successful
but it doesn't match, resulting playback unsmooth.

Solution:
When lookup fail is detected many times and the frame size is
small, pts is computed using duration to solve the problem.

Verify:
SC2

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