avcodec/png_parser: Return the buffered data at the end
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 11 Sep 2014 14:40:25 +0000 (16:40 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 11 Sep 2014 14:47:01 +0000 (16:47 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/png_parser.c

index 530d5a0..74f2964 100644 (file)
@@ -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;