diff mbox

[FFmpeg-devel,1/6] avutil/frame: Add a flag to discard frame after decode.

Message ID 1473971779-27524-1-git-send-email-isasi@google.com
State Accepted
Commit 3cb400c11a75e6f645e5267831e6398bdb0b084e
Headers show

Commit Message

Sasi Inguva Sept. 15, 2016, 8:36 p.m. UTC
Signed-off-by: Sasi Inguva <isasi@google.com>
---
 libavutil/frame.c   | 1 +
 libavutil/frame.h   | 4 ++++
 libavutil/version.h | 2 +-
 3 files changed, 6 insertions(+), 1 deletion(-)

Comments

Michael Niedermayer Sept. 19, 2016, 5:56 p.m. UTC | #1
On Thu, Sep 15, 2016 at 01:36:14PM -0700, Sasi Inguva wrote:
> Signed-off-by: Sasi Inguva <isasi@google.com>
> ---
>  libavutil/frame.c   | 1 +
>  libavutil/frame.h   | 4 ++++
>  libavutil/version.h | 2 +-
>  3 files changed, 6 insertions(+), 1 deletion(-)

applied

thx

[...]
diff mbox

Patch

diff --git a/libavutil/frame.c b/libavutil/frame.c
index 662c20d..3c74931 100644
--- a/libavutil/frame.c
+++ b/libavutil/frame.c
@@ -114,6 +114,7 @@  static void get_frame_defaults(AVFrame *frame)
     frame->colorspace          = AVCOL_SPC_UNSPECIFIED;
     frame->color_range         = AVCOL_RANGE_UNSPECIFIED;
     frame->chroma_location     = AVCHROMA_LOC_UNSPECIFIED;
+    frame->flags               = 0;
 }
 
 static void free_side_data(AVFrameSideData **ptr_sd)
diff --git a/libavutil/frame.h b/libavutil/frame.h
index 8a41a86..1e2691e 100644
--- a/libavutil/frame.h
+++ b/libavutil/frame.h
@@ -396,6 +396,10 @@  typedef struct AVFrame {
  */
 #define AV_FRAME_FLAG_CORRUPT       (1 << 0)
 /**
+ * A flag to mark the frames which need to be decoded, but shouldn't be output.
+ */
+#define AV_FRAME_FLAG_DISCARD   (1 << 2)
+/**
  * @}
  */
 
diff --git a/libavutil/version.h b/libavutil/version.h
index 7d32c7b..60b58eb 100644
--- a/libavutil/version.h
+++ b/libavutil/version.h
@@ -79,7 +79,7 @@ 
  */
 
 #define LIBAVUTIL_VERSION_MAJOR  55
-#define LIBAVUTIL_VERSION_MINOR  29
+#define LIBAVUTIL_VERSION_MINOR  30
 #define LIBAVUTIL_VERSION_MICRO 100
 
 #define LIBAVUTIL_VERSION_INT   AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \