avcodec/lcldec: mark output frames as keyframes
authorPaul B Mahol <onemda@gmail.com>
Tue, 11 Apr 2017 15:07:52 +0000 (17:07 +0200)
committerPaul B Mahol <onemda@gmail.com>
Tue, 11 Apr 2017 15:07:52 +0000 (17:07 +0200)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/lcldec.c

index abc04e3..104defa 100644 (file)
@@ -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 */