]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/bmp_parser.c
avfilter/vf_identity: remove unnecessary check
[ffmpeg] / libavcodec / bmp_parser.c
index cd65f02a2e0c82901cb69a371f1f2532f93b5bcf..3440794b2cfc2e0efdbeda3e78fb707bc2b69cba 100644 (file)
@@ -45,6 +45,7 @@ static int bmp_parse(AVCodecParserContext *s, AVCodecContext *avctx,
     int i = 0;
 
     *poutbuf_size = 0;
+    *poutbuf = NULL;
 
 restart:
     if (bpc->pc.frame_start_found <= 2+4+4) {
@@ -104,7 +105,7 @@ flush:
     return next;
 }
 
-AVCodecParser ff_bmp_parser = {
+const AVCodecParser ff_bmp_parser = {
     .codec_ids      = { AV_CODEC_ID_BMP },
     .priv_data_size = sizeof(BMPParseContext),
     .parser_parse   = bmp_parse,