summaryrefslogtreecommitdiff
path: root/libavcodec/pgxdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/pgxdec.c')
-rw-r--r--libavcodec/pgxdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pgxdec.c b/libavcodec/pgxdec.c
index e5d1df784e..cc7cdb8c9a 100644
--- a/libavcodec/pgxdec.c
+++ b/libavcodec/pgxdec.c
@@ -140,7 +140,7 @@ static int pgx_decode_frame(AVCodecContext *avctx, AVFrame *p,
if ((ret = ff_get_buffer(avctx, p, 0)) < 0)
return ret;
p->pict_type = AV_PICTURE_TYPE_I;
- p->key_frame = 1;
+ p->flags |= AV_FRAME_FLAG_KEY;
avctx->bits_per_raw_sample = depth;
if (bpp == 8)
write_frame_8(p, &g, width, height, sign, depth);