Commit 4a203b77 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/png_parser: Return the buffered data at the end

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent a6153bde
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment