diff avformat.h @ 979:d2e5dfdf4def libavformat

add size to AVIndex
author michael
date Wed, 01 Mar 2006 11:29:55 +0000
parents d1d7a0e87dea
children a9d8381ff40d
line wrap: on
line diff
--- a/avformat.h	Wed Mar 01 07:42:55 2006 +0000
+++ b/avformat.h	Wed Mar 01 11:29:55 2006 +0000
@@ -208,8 +208,8 @@
     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 @@
 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 */