Mercurial > libavformat.hg
diff avformat.h @ 354:6770ca07abe2 libavformat
store searched distance in index, so we dont waste time searching for keyframes where we already searched
asf seek fixes & use keyframe pos/timestamp cache
| author | michael |
|---|---|
| date | Sat, 17 Jan 2004 18:06:52 +0000 |
| parents | e154eb1b7149 |
| children | b2a0f47067ed |
line wrap: on
line diff
--- a/avformat.h Wed Jan 14 21:50:05 2004 +0000 +++ b/avformat.h Sat Jan 17 18:06:52 2004 +0000 @@ -196,9 +196,8 @@ int64_t timestamp; #define AVINDEX_KEYFRAME 0x0001 /* the following 2 flags indicate that the next/prev keyframe is known, and scaning for it isnt needed */ -#define AVINDEX_NEXT_KNOWN 0x0002 -#define AVINDEX_PREV_KNOWN 0x0004 int flags; + int min_distance; /* min distance between this and the previous keyframe, used to avoid unneeded searching */ } AVIndexEntry; typedef struct AVStream { @@ -549,8 +548,8 @@ int av_find_default_stream_index(AVFormatContext *s); int av_index_search_timestamp(AVStream *st, int timestamp); -void av_add_index_entry(AVStream *st, - int64_t pos, int64_t timestamp, int flags); +int av_add_index_entry(AVStream *st, + int64_t pos, int64_t timestamp, int distance, int flags); /* media file output */ int av_set_parameters(AVFormatContext *s, AVFormatParameters *ap);
