PD#SWPL-25348
Problem:
this stream has wrong duration info inside vui.
it cause video display not smooth
Solution:
add a limit when variable frame rate and duraion is
adnormal. force set duration to a normal
Verify:
U215
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
Change-Id: I164e6d59f622f0cc5247c2d929f7e2693a16f6bd
FIX_FRAME_RATE_OFF;
hw->pts_duration = 0;
hw->frame_dur = frame_dur_es;
+ if (!hw->fixed_frame_rate_flag && (p_H264_Dpb->mSPS.profile_idc != BASELINE)) {
+ if (frame_dur_es == 7680)
+ hw->frame_dur = frame_dur_es /2;
+ }
vdec_schedule_work(&hw->notify_work);
dpb_print(DECODE_ID(hw),
PRINT_FLAG_DEC_DETAIL,