Commit 3cdb126d authored by j45's avatar j45

fix return value and out_pkt setting of nav_clip_time_search()

parent 6ad01ebf
......@@ -531,13 +531,12 @@ NAV_CLIP* nav_time_search(NAV_TITLE *title, uint32_t tick, uint32_t *clip_pkt, u
void nav_clip_time_search(NAV_CLIP *clip, uint32_t tick, uint32_t *clip_pkt, uint32_t *out_pkt)
{
if (tick >= clip->out_time) {
*out_pkt = clip->end_pkt;
*clip_pkt = clip->end_pkt;
} else {
*clip_pkt = clpi_lookup_spn(clip->cl, tick, 1,
clip->title->pl->play_item[clip->ref].clip[clip->angle].stc_id);
}
*out_pkt = clip->pos + *clip_pkt - clip->start_pkt;
return clip;
}
/*
......
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