diff mbox

[FFmpeg-devel,2/6] avformat/avframe.h: Add a flag in AVIndexEntry to discard frame after decoding.

Message ID 1473971779-27524-2-git-send-email-isasi@google.com
State Accepted
Commit 778af68c708ed0807889d40d3e3d514cb6bec702
Headers show

Commit Message

Sasi Inguva Sept. 15, 2016, 8:36 p.m. UTC
Signed-off-by: Sasi Inguva <isasi@google.com>
---
 libavformat/avformat.h | 3 +++
 1 file changed, 3 insertions(+)

Comments

Michael Niedermayer Sept. 19, 2016, 5:56 p.m. UTC | #1
On Thu, Sep 15, 2016 at 01:36:15PM -0700, Sasi Inguva wrote:
> Signed-off-by: Sasi Inguva <isasi@google.com>
> ---
>  libavformat/avformat.h | 3 +++
>  1 file changed, 3 insertions(+)

applied

thx

[...]
diff mbox

Patch

diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 21e505d..ae70cc8 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. */