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:
shihong.zheng
2019-03-26 18:40:27 +08:00
committed by Luan Yuan
parent 15afd39a76
commit 537ee9276b

View File

@@ -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,