Commit 5acfc5a4 authored by hpi1's avatar hpi1

Simplified bd_seek_time()

parent e8b4cc66
......@@ -506,8 +506,10 @@ int64_t bd_seek_time(BLURAY *bd, uint64_t tick)
bd->seamless_angle_change = 0;
bd_psr_write(bd->regs, PSR_ANGLE_NUMBER, bd->title->angle + 1);
}
if (tick < bd->title->duration * 2) {
tick /= 2;
tick /= 2;
if (tick < bd->title->duration) {
// Find the closest access unit to the requested position
clip = nav_time_search(bd->title, tick, &clip_pkt, &out_pkt);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment