diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-02-06 15:38:55 +0100 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2011-02-06 16:35:00 -0500 |
commit | 19711af5cdc364f9e02ea8103dd6e1e09dc288a4 (patch) | |
tree | 41bbb517f80264ff1a492d64c4b2ce48916c1263 /libavformat/internal.h | |
parent | b3190529dfefe3226302b23e76e16c631cde6649 (diff) | |
download | ffmpeg-19711af5cdc364f9e02ea8103dd6e1e09dc288a4.tar.gz |
lavf: move internal functions from avformat.h to internal.h
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r-- | libavformat/internal.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h index e53da7d46d..9e3302fa5f 100644 --- a/libavformat/internal.h +++ b/libavformat/internal.h @@ -240,4 +240,25 @@ int ff_add_index_entry(AVIndexEntry **index_entries, unsigned int *index_entries_allocated_size, int64_t pos, int64_t timestamp, int size, int distance, int flags); +/** + * Add a new chapter. + * + * @param s media file handle + * @param id unique ID for this chapter + * @param start chapter start time in time_base units + * @param end chapter end time in time_base units + * @param title chapter title + * + * @return AVChapter or NULL on error + */ +AVChapter *ff_new_chapter(AVFormatContext *s, int id, AVRational time_base, + int64_t start, int64_t end, const char *title); + +/** + * Ensure the index uses less memory than the maximum specified in + * AVFormatContext.max_index_size by discarding entries if it grows + * too large. + */ +void ff_reduce_index(AVFormatContext *s, int stream_index); + #endif /* AVFORMAT_INTERNAL_H */ |