summaryrefslogtreecommitdiff
path: root/libavformat/internal.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-07-06 21:52:07 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-07-06 22:27:35 +0200
commit8ca5d277d8a8e31365b0e9609114738db26bbc6a (patch)
treeea102d2f4743acff257da8099fed2fb245df341e /libavformat/internal.h
parentd64f3b72e0eaec2933b5283b676272c678b28e79 (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.h3
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().
*