summaryrefslogtreecommitdiff
path: root/libavcodec/targa_y216dec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/targa_y216dec.c')
-rw-r--r--libavcodec/targa_y216dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/targa_y216dec.c b/libavcodec/targa_y216dec.c
index d5234c16ae..2874a51aae 100644
--- a/libavcodec/targa_y216dec.c
+++ b/libavcodec/targa_y216dec.c
@@ -47,7 +47,7 @@ static int y216_decode_frame(AVCodecContext *avctx, AVFrame *pic,
if ((ret = ff_get_buffer(avctx, pic, 0)) < 0)
return ret;
- pic->key_frame = 1;
+ pic->flags |= AV_FRAME_FLAG_KEY;
pic->pict_type = AV_PICTURE_TYPE_I;
y = (uint16_t *)pic->data[0];