author | Nanxin Qin <nanxin.qin@amlogic.com> | 2019-01-07 13:10:23 (GMT) |
---|---|---|
committer | Luan Yuan <luan.yuan@amlogic.com> | 2019-01-09 01:53:44 (GMT) |
commit | b0970a4891b88eaee944837486f4cafc8ad58be0 (patch) | |
tree | 6d33eb6ca116dfe55fbebac47abd7125c1474649 | |
parent | edd09e3046df9492f07d701ea0f47e55d0bbeca3 (diff) | |
download | media_modules-b0970a4891b88eaee944837486f4cafc8ad58be0.zip media_modules-b0970a4891b88eaee944837486f4cafc8ad58be0.tar.gz media_modules-b0970a4891b88eaee944837486f4cafc8ad58be0.tar.bz2 |
vdec: fixed the issue of the pts to set fail with drm mode. [1/1]
PD#SWPL-3780
Problem:
cast youtube drm video,the video play is very not smooth
Solution:
fixed the issue of the pts to set fail with drm mode.
Verify:
p212
Change-Id: I556e3f2cdbc9b90cb90224ffdb3728ec96724ff6
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
-rw-r--r-- | drivers/frame_provider/decoder/utils/vdec_input.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/frame_provider/decoder/utils/vdec_input.c b/drivers/frame_provider/decoder/utils/vdec_input.c index a4309b0..9b4f01e 100644 --- a/drivers/frame_provider/decoder/utils/vdec_input.c +++ b/drivers/frame_provider/decoder/utils/vdec_input.c @@ -937,6 +937,11 @@ int vdec_input_add_frame(struct vdec_input_s *input, const char *buf, (size_t)drm.drm_pktsize, drm.handle); count -= sizeof(struct drm_info); ret += sizeof(struct drm_info); + + /* the drm frame data might include head infos and raw */ + /* data thus the next drm unit still need a valid pts.*/ + if (count >= sizeof(struct drm_info)) + vdec->pts_valid = true; } } else { ret = vdec_input_add_chunk(input, buf, count, 0); |