summaryrefslogtreecommitdiff
path: root/libavcodec/cdxl.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2020-08-31 00:07:18 +0200
committerPaul B Mahol <onemda@gmail.com>2020-08-31 00:15:22 +0200
commit72942ad6d4b243389d84e7e95641152ad9148bd9 (patch)
treefec97b595e56d74e830df45f76f9d8bff0907eda /libavcodec/cdxl.c
parentef46de695f1f54ec1025ec20c07b25685787d956 (diff)
downloadffmpeg-72942ad6d4b243389d84e7e95641152ad9148bd9.tar.gz
avcodec/cdxl: also mark decoded frame as keyframe
Diffstat (limited to 'libavcodec/cdxl.c')
-rw-r--r--libavcodec/cdxl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/cdxl.c b/libavcodec/cdxl.c
index 78f5d50102..7c82967df0 100644
--- a/libavcodec/cdxl.c
+++ b/libavcodec/cdxl.c
@@ -295,6 +295,7 @@ static int cdxl_decode_frame(AVCodecContext *avctx, void *data,
if ((ret = ff_get_buffer(avctx, p, 0)) < 0)
return ret;
p->pict_type = AV_PICTURE_TYPE_I;
+ p->key_frame = 1;
if (encoding) {
av_fast_padded_malloc(&c->new_video, &c->new_video_size,