avcodec/libopenjpegdec: Set key frame metadata
Signed-off-by: Michael Bradshaw <mjbshaw@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
d7a3c7427f
commit
616513ef6e
1 changed files with 2 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue