[FFmpeg-cvslog] avcodec/lcldec: mark output frames as keyframes

Paul B Mahol git at videolan.org
Tue Apr 11 18:10:59 EEST 2017


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Apr 11 17:07:52 2017 +0200| [da2fd3f73e88fe5a2956ce6a30e260f288694b9b] | committer: Paul B Mahol

avcodec/lcldec: mark output frames as keyframes

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=da2fd3f73e88fe5a2956ce6a30e260f288694b9b
---

 libavcodec/lcldec.c | 3 +++
 1 file changed, 3 insertions(+)

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 */



More information about the ffmpeg-cvslog mailing list