aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorSasi Inguva <isasi-at-google.com@ffmpeg.org>2016-09-15 13:36:15 -0700
committerMichael Niedermayer <michael@niedermayer.cc>2016-09-19 19:51:13 +0200
commit778af68c708ed0807889d40d3e3d514cb6bec702 (patch)
tree009fcdebc9a604de0ccdf9c936388fa88dffb8c7 /libavformat
parent3cb400c11a75e6f645e5267831e6398bdb0b084e (diff)
downloadffmpeg-778af68c708ed0807889d40d3e3d514cb6bec702.tar.gz
avformat/avframe.h: Add a flag in AVIndexEntry to discard frame after decoding.
Signed-off-by: Sasi Inguva <isasi@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/avformat.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 21e505d2ae..ae70cc88ec 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -814,6 +814,9 @@ typedef struct AVIndexEntry {
* is known
*/
#define AVINDEX_KEYFRAME 0x0001
+#define AVINDEX_DISCARD_FRAME 0x0002 /**
+ * Flag is used to indicate which frame should be discarded after decoding.
+ */
int flags:2;
int size:30; //Yeah, trying to keep the size of this small to reduce memory requirements (it is 24 vs. 32 bytes due to possible 8-byte alignment).
int min_distance; /**< Minimum distance between this and the previous keyframe, used to avoid unneeded searching. */