Revision 30a43f2d libavformat/avformat.h

View differences:

libavformat/avformat.h
208 208
    int64_t pos;
209 209
    int64_t timestamp;
210 210
#define AVINDEX_KEYFRAME 0x0001
211
/* the following 2 flags indicate that the next/prev keyframe is known, and scaning for it isnt needed */
212
    int flags;
211
    int flags:2;
212
    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)
213 213
    int min_distance;         /* min distance between this and the previous keyframe, used to avoid unneeded searching */
214 214
} AVIndexEntry;
215 215

  
......
641 641
int av_find_default_stream_index(AVFormatContext *s);
642 642
int av_index_search_timestamp(AVStream *st, int64_t timestamp, int flags);
643 643
int av_add_index_entry(AVStream *st,
644
                       int64_t pos, int64_t timestamp, int distance, int flags);
644
                       int64_t pos, int64_t timestamp, int size, int distance, int flags);
645 645
int av_seek_frame_binary(AVFormatContext *s, int stream_index, int64_t target_ts, int flags);
646 646

  
647 647
/* media file output */

Also available in: Unified diff