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>
This commit is contained in:
Nanxin Qin
2019-01-07 21:10:23 +08:00
committed by Dongjin Kim
parent 2f70df330d
commit e74dab5457

View File

@@ -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);