mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
pts: fix mvc play is not smooth. [1/1]
PD#SWPL-6094 Problem: some mvc stream is not smooth. Solution: optimize the condition for pts loockup fail code. Verify: x301 Change-Id: I50bb3f317e1245735f9ce0ffcc44376c91e871ed Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
This commit is contained in:
@@ -755,10 +755,11 @@ static int pts_lookup_offset_inline_locked(u8 type, u32 offset, u32 *val,
|
||||
|
||||
p2 = p;
|
||||
}
|
||||
|
||||
/* if p2 lookup fail, set p2 = p */
|
||||
if (type == PTS_TYPE_VIDEO && p2 && p &&
|
||||
OFFSET_DIFF(offset, p2->offset) > lookup_threshold &&
|
||||
OFFSET_DIFF(offset, p->offset) < lookup_threshold)
|
||||
abs(OFFSET_DIFF(offset, p->offset)) < lookup_threshold)
|
||||
p2 = p;
|
||||
} else if (OFFSET_LATER(p->offset, offset)) {
|
||||
list_for_each_entry_continue_reverse(p,
|
||||
|
||||
Reference in New Issue
Block a user