summaryrefslogtreecommitdiff
path: root/libavcodec/xbm_parser.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2021-02-05 15:46:39 +0100
committerPaul B Mahol <onemda@gmail.com>2021-02-05 15:49:13 +0100
commit2a2f685613f1acd6b8622bd2439bcaa984f024e2 (patch)
tree33771cde186ac7794a3a17bde8f9edc08c723584 /libavcodec/xbm_parser.c
parent4978512dcd15adb30fb6dd9006819900c30fc686 (diff)
avcodec/xbm_parser: mark frame as intra only and as key frame
Diffstat (limited to 'libavcodec/xbm_parser.c')
-rw-r--r--libavcodec/xbm_parser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/xbm_parser.c b/libavcodec/xbm_parser.c
index bcbc3222f4..6b0eea69ad 100644
--- a/libavcodec/xbm_parser.c
+++ b/libavcodec/xbm_parser.c
@@ -59,7 +59,8 @@ static int xbm_parse(AVCodecParserContext *s, AVCodecContext *avctx,
uint16_t state16 = bpc->state16;
int next = END_NOT_FOUND, i = 0;
- s->pict_type = AV_PICTURE_TYPE_NONE;
+ s->pict_type = AV_PICTURE_TYPE_I;
+ s->key_frame = 1;
s->duration = 1;
*poutbuf_size = 0;