summaryrefslogtreecommitdiff
path: root/libavcodec/yuv4dec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/yuv4dec.c')
-rw-r--r--libavcodec/yuv4dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/yuv4dec.c b/libavcodec/yuv4dec.c
index 15424b1940..ad83a2125c 100644
--- a/libavcodec/yuv4dec.c
+++ b/libavcodec/yuv4dec.c
@@ -46,7 +46,7 @@ static int yuv4_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 = pic->data[0];