From 4a203b773702ea1989b1ad89eaeaf96a291873d8 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 11 Sep 2014 16:40:25 +0200 Subject: avcodec/png_parser: Return the buffered data at the end Signed-off-by: Michael Niedermayer --- libavcodec/png_parser.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavcodec/png_parser.c b/libavcodec/png_parser.c index 530d5a0bad..74f2964118 100644 --- a/libavcodec/png_parser.c +++ b/libavcodec/png_parser.c @@ -45,8 +45,6 @@ static int png_parse(AVCodecParserContext *s, AVCodecContext *avctx, s->pict_type = AV_PICTURE_TYPE_NONE; *poutbuf_size = 0; - if (buf_size == 0) - return 0; if (!ppc->pc.frame_start_found) { uint64_t state64 = ppc->pc.state64; -- cgit v1.2.3