diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-07-06 23:52:07 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-07-07 00:27:35 +0400 |
commit | 8ca5d277d8a8e31365b0e9609114738db26bbc6a (patch) | |
tree | ea102d2f4743acff257da8099fed2fb245df341e /libavformat/internal.h | |
parent | d64f3b72e0eaec2933b5283b676272c678b28e79 (diff) |
avformat/utils: factor ff_find_last_ts() out of ff_gen_search()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r-- | libavformat/internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h index ee66e8c04e..1f74069bcc 100644 --- a/libavformat/internal.h +++ b/libavformat/internal.h @@ -242,6 +242,9 @@ int ff_seek_frame_binary(AVFormatContext *s, int stream_index, */ void ff_update_cur_dts(AVFormatContext *s, AVStream *ref_st, int64_t timestamp); +int ff_find_last_ts(AVFormatContext *s, int stream_index, int64_t *ts, int64_t *pos, + int64_t (*read_timestamp)(struct AVFormatContext *, int , int64_t *, int64_t )); + /** * Perform a binary search using read_timestamp(). * |