|
|
|
@@ -1271,7 +1271,7 @@ static int read_seek(AVFormatContext *s, int stream_index, |
|
|
|
pos2 = st->index_entries[index].pos; |
|
|
|
ts = st->index_entries[index].timestamp; |
|
|
|
} else { |
|
|
|
av_tree_find(nut->syncpoints, &dummy, (void *) ff_nut_sp_pts_cmp, |
|
|
|
av_tree_find(nut->syncpoints, &dummy, ff_nut_sp_pts_cmp, |
|
|
|
(void **) next_node); |
|
|
|
av_log(s, AV_LOG_DEBUG, "%"PRIu64"-%"PRIu64" %"PRId64"-%"PRId64"\n", |
|
|
|
next_node[0]->pos, next_node[1]->pos, next_node[0]->ts, |
|
|
|
@@ -1286,7 +1286,7 @@ static int read_seek(AVFormatContext *s, int stream_index, |
|
|
|
if (!(flags & AVSEEK_FLAG_BACKWARD)) { |
|
|
|
dummy.pos = pos + 16; |
|
|
|
next_node[1] = &nopts_sp; |
|
|
|
av_tree_find(nut->syncpoints, &dummy, (void *) ff_nut_sp_pos_cmp, |
|
|
|
av_tree_find(nut->syncpoints, &dummy, ff_nut_sp_pos_cmp, |
|
|
|
(void **) next_node); |
|
|
|
pos2 = ff_gen_search(s, -2, dummy.pos, next_node[0]->pos, |
|
|
|
next_node[1]->pos, next_node[1]->pos, |
|
|
|
@@ -1297,7 +1297,7 @@ static int read_seek(AVFormatContext *s, int stream_index, |
|
|
|
// FIXME dir but I think it does not matter |
|
|
|
} |
|
|
|
dummy.pos = pos; |
|
|
|
sp = av_tree_find(nut->syncpoints, &dummy, (void *) ff_nut_sp_pos_cmp, |
|
|
|
sp = av_tree_find(nut->syncpoints, &dummy, ff_nut_sp_pos_cmp, |
|
|
|
NULL); |
|
|
|
|
|
|
|
av_assert0(sp); |
|
|
|
|