summaryrefslogtreecommitdiff
authorHui Zhang <hui.zhang@amlogic.com>2020-05-06 11:57:30 (GMT)
committer Hui Zhang <hui.zhang@amlogic.com>2020-05-26 07:29:43 (GMT)
commitbb229c02a35f1f01e00fadd8b1af08d6f16dc7ab (patch)
tree20f3019512196382a7320805be96fb60e0909016
parent527e712a2b0e5dbc14db80e0a854b3c97bcd6823 (diff)
downloadmedia_modules-bb229c02a35f1f01e00fadd8b1af08d6f16dc7ab.zip
media_modules-bb229c02a35f1f01e00fadd8b1af08d6f16dc7ab.tar.gz
media_modules-bb229c02a35f1f01e00fadd8b1af08d6f16dc7ab.tar.bz2
vmh264: video playback stutter issue [1/1]
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
Diffstat
-rw-r--r--drivers/frame_provider/decoder/h264_multi/vmh264.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/frame_provider/decoder/h264_multi/vmh264.c b/drivers/frame_provider/decoder/h264_multi/vmh264.c
index 99e51cb..459bd48 100644
--- a/drivers/frame_provider/decoder/h264_multi/vmh264.c
+++ b/drivers/frame_provider/decoder/h264_multi/vmh264.c
@@ -5086,6 +5086,10 @@ static void vui_config(struct vdec_h264_hw_s *hw)
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,