X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fpng_parser.c;h=9ec8551a1b7b7c12d658502477d25972bbd8fae9;hb=daf8b10eeb9c789cad5c2c263493249950c6f55f;hp=74f296411810f9624fe5573ec211c8ff8c02bf47;hpb=6fc762b4fd2c28ef7a0689a1df5ce200e5f5948f;p=ffmpeg diff --git a/libavcodec/png_parser.c b/libavcodec/png_parser.c index 74f29641181..9ec8551a1b7 100644 --- a/libavcodec/png_parser.c +++ b/libavcodec/png_parser.c @@ -45,6 +45,7 @@ static int png_parse(AVCodecParserContext *s, AVCodecContext *avctx, s->pict_type = AV_PICTURE_TYPE_NONE; *poutbuf_size = 0; + *poutbuf = NULL; if (!ppc->pc.frame_start_found) { uint64_t state64 = ppc->pc.state64;