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

Michael Bradshaw mjbshaw at gmail.com
Wed Dec 28 07:34:41 EET 2016


From: Michael Bradshaw <mjbshaw at google.com>

Signed-off-by: Michael Bradshaw <mjbshaw at google.com>
---
 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:
-- 
2.10.1 (Apple Git-78)



More information about the ffmpeg-devel mailing list