aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2017-04-11 17:07:52 +0200
committerPaul B Mahol <onemda@gmail.com>2017-04-11 17:07:52 +0200
commitda2fd3f73e88fe5a2956ce6a30e260f288694b9b (patch)
tree8425e31dd853024315cc3674b6ed375990367951
parentc61dc289110c3aaed41517ce89e0d9dc9359d5d0 (diff)
downloadffmpeg-da2fd3f73e88fe5a2956ce6a30e260f288694b9b.tar.gz
avcodec/lcldec: mark output frames as keyframes
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r--libavcodec/lcldec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/lcldec.c b/libavcodec/lcldec.c
index abc04e35dc..104defa5f5 100644
--- a/libavcodec/lcldec.c
+++ b/libavcodec/lcldec.c
@@ -460,6 +460,9 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPac
return AVERROR_INVALIDDATA;
}
+ frame->key_frame = 1;
+ frame->pict_type = AV_PICTURE_TYPE_I;
+
*got_frame = 1;
/* always report that the buffer was completely consumed */