[FFmpeg-cvslog] avcodec/libopenjpegdec: Set key frame metadata

Michael Bradshaw git at videolan.org
Wed Dec 28 17:05:23 EET 2016


ffmpeg | branch: master | Michael Bradshaw <mjbshaw at google.com> | Tue Dec 27 21:34:41 2016 -0800| [616513ef6e6d967bbda4543e548d8d3fd4e49c15] | committer: Michael Niedermayer

avcodec/libopenjpegdec: Set key frame metadata

Signed-off-by: Michael Bradshaw <mjbshaw at google.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

 libavcodec/libopenjpegdec.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/libopenjpegdec.c b/libavcodec/libopenjpegdec.c
index b4ce834..f09f4ba 100644
--- a/libavcodec/libopenjpegdec.c
+++ b/libavcodec/libopenjpegdec.c
@@ -546,6 +546,8 @@ static int libopenjpeg_decode_frame(AVCodecContext *avctx,
     }
 
     *got_frame = 1;
+    picture->pict_type = AV_PICTURE_TYPE_I;
+    picture->key_frame = 1;
     ret        = buf_size;
 
 done:



More information about the ffmpeg-cvslog mailing list