diff options
author | Peter Ross <pross@xvid.org> | 2011-01-22 20:03:22 +1100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-02-06 20:31:42 +0100 |
commit | 2d9fd1810bdf7ce9135aa39145b85a35a0ba3dac (patch) | |
tree | 7438fa7f2bcc0ce13700a6644bfa3450fd8ea07e /libavformat/internal.h | |
parent | 566f17b62dfd4579c8c66444d344fab1129a8676 (diff) | |
download | ffmpeg-2d9fd1810bdf7ce9135aa39145b85a35a0ba3dac.tar.gz |
add ff_index_search_timestamp and ff_add_index_entry
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit e6fb5a4f78a67ed815e39ba8ac3893fd631b9b1a)
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r-- | libavformat/internal.h | 14 |
1 files changed, 14 insertions, 0 deletions
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 */ |