mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user