diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-03-01 11:29:55 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-03-01 11:29:55 +0000 |
commit | 30a43f2d09d4ddb7f6335dfd32796896e64b2655 (patch) | |
tree | ab32569d2b2a35be737151c12e375aaedd573e14 /libavformat/avformat.h | |
parent | 26d6d032702c55616127511fa317b96763eb5cb3 (diff) | |
download | ffmpeg-30a43f2d09d4ddb7f6335dfd32796896e64b2655.tar.gz |
add size to AVIndex
Originally committed as revision 5083 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r-- | libavformat/avformat.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 8786d62f22..f95462eb62 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -208,8 +208,8 @@ typedef struct AVIndexEntry { int64_t pos; 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 */ - int flags; + int flags:2; + int size:30; //yeah trying to keep the size of this small to reduce memory requirements (its 24 vs 32 byte due to possible 8byte align) int min_distance; /* min distance between this and the previous keyframe, used to avoid unneeded searching */ } AVIndexEntry; @@ -641,7 +641,7 @@ void av_set_pts_info(AVStream *s, int pts_wrap_bits, int av_find_default_stream_index(AVFormatContext *s); int av_index_search_timestamp(AVStream *st, int64_t timestamp, int flags); int av_add_index_entry(AVStream *st, - int64_t pos, int64_t timestamp, int distance, int flags); + int64_t pos, int64_t timestamp, int size, int distance, int flags); int av_seek_frame_binary(AVFormatContext *s, int stream_index, int64_t target_ts, int flags); /* media file output */ |