summaryrefslogtreecommitdiff
path: root/libavcodec/cpia.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/cpia.c')
-rw-r--r--libavcodec/cpia.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/cpia.c b/libavcodec/cpia.c
index bfd270dae2..f62100c419 100644
--- a/libavcodec/cpia.c
+++ b/libavcodec/cpia.c
@@ -94,10 +94,10 @@ static int cpia_decode_frame(AVCodecContext *avctx, AVFrame *rframe,
if (header[28] == NOT_COMPRESSED) {
frame->pict_type = AV_PICTURE_TYPE_I;
- frame->key_frame = 1;
+ frame->flags |= AV_FRAME_FLAG_KEY;
} else {
frame->pict_type = AV_PICTURE_TYPE_P;
- frame->key_frame = 0;
+ frame->flags &= ~AV_FRAME_FLAG_KEY;
}
// Get buffer filled with previous frame