[FFmpeg-devel] [PATCH 1/5] avutil/frame: add a keyframe flag to AVFrame

James Almer jamrial at gmail.com
Thu Apr 13 19:29:36 EEST 2023


Signed-off-by: James Almer <jamrial at gmail.com>
---
Missing version bump and APIChanges entry

 libavutil/frame.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavutil/frame.h b/libavutil/frame.h
index 5b58c14ac3..895e06bbd7 100644
--- a/libavutil/frame.h
+++ b/libavutil/frame.h
@@ -582,6 +582,10 @@ typedef struct AVFrame {
  * The frame data may be corrupted, e.g. due to decoding errors.
  */
 #define AV_FRAME_FLAG_CORRUPT       (1 << 0)
+/**
+ * A flag to mark frames that are keyframes.
+ */
+#define AV_FRAME_FLAG_KEY (1 << 1)
 /**
  * A flag to mark the frames which need to be decoded, but shouldn't be output.
  */
-- 
2.40.0



More information about the ffmpeg-devel mailing list