avutil/frame: add a keyframe flag to AVFrame

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2023-04-11 13:59:49 -03:00
parent 599abc0f3a
commit cc11191fda

View File

@ -590,6 +590,10 @@ typedef struct AVFrame {
* The frame data may be corrupted, e.g. due to decoding errors. * The frame data may be corrupted, e.g. due to decoding errors.
*/ */
#define AV_FRAME_FLAG_CORRUPT (1 << 0) #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. * A flag to mark the frames which need to be decoded, but shouldn't be output.
*/ */