From e6fb5a4f78a67ed815e39ba8ac3893fd631b9b1a Mon Sep 17 00:00:00 2001 From: Peter Ross Date: Sat, 22 Jan 2011 20:03:22 +1100 Subject: add ff_index_search_timestamp and ff_add_index_entry Signed-off-by: Ronald S. Bultje --- libavformat/internal.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'libavformat/internal.h') diff --git a/libavformat/internal.h b/libavformat/internal.h index b401d352cf..e53da7d46d 100644 --- a/libavformat/internal.h +++ b/libavformat/internal.h @@ -226,4 +226,18 @@ void ff_parse_key_value(const char *str, ff_parse_key_val_cb callback_get_buf, */ int ff_find_stream_index(AVFormatContext *s, int id); +/** + * Internal version of av_index_search_timestamp + */ +int ff_index_search_timestamp(const AVIndexEntry *entries, int nb_entries, + int64_t wanted_timestamp, int flags); + +/** + * Internal version of av_add_index_entry + */ +int ff_add_index_entry(AVIndexEntry **index_entries, + int *nb_index_entries, + unsigned int *index_entries_allocated_size, + int64_t pos, int64_t timestamp, int size, int distance, int flags); + #endif /* AVFORMAT_INTERNAL_H */ -- cgit v1.2.3