avcodec/libopenjpegdec: Set key frame metadata
authorMichael Bradshaw <mjbshaw@google.com>
Wed, 28 Dec 2016 05:34:41 +0000 (21:34 -0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 28 Dec 2016 15:04:59 +0000 (16:04 +0100)
Signed-off-by: Michael Bradshaw <mjbshaw@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/libopenjpegdec.c

index b4ce834..f09f4ba 100644 (file)
@@ -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: