]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/xbm_parser.c
avcodec: Constify all the AVCodecParsers
[ffmpeg] / libavcodec / xbm_parser.c
index bcbc3222f4fdb0c237aa9a2f4b19022faa31609f..28aae49ee3d935a7bcc90f18e7dd914e2ccddeb2 100644 (file)
@@ -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;
@@ -96,7 +97,7 @@ static int xbm_parse(AVCodecParserContext *s, AVCodecContext *avctx,
     return next;
 }
 
-AVCodecParser ff_xbm_parser = {
+const AVCodecParser ff_xbm_parser = {
     .codec_ids      = { AV_CODEC_ID_XBM },
     .priv_data_size = sizeof(XBMParseContext),
     .parser_init    = xbm_init,