[FFmpeg-cvslog] avcodec/xbm_parser: mark frame as intra only and as key frame

Paul B Mahol git at videolan.org
Fri Feb 5 16:49:38 EET 2021


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Feb  5 15:46:39 2021 +0100| [2a2f685613f1acd6b8622bd2439bcaa984f024e2] | committer: Paul B Mahol

avcodec/xbm_parser: mark frame as intra only and as key frame

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

 libavcodec/xbm_parser.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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;



More information about the ffmpeg-cvslog mailing list