diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-09-11 16:40:25 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-09-11 16:47:01 +0200 |
commit | 4a203b773702ea1989b1ad89eaeaf96a291873d8 (patch) | |
tree | 560f009c53da798c4fa8c628df271d76221a009e /libavcodec/png_parser.c | |
parent | a6153bde3dee9243a72f3093bc1f3f63beb8eb62 (diff) | |
download | ffmpeg-4a203b773702ea1989b1ad89eaeaf96a291873d8.tar.gz |
avcodec/png_parser: Return the buffered data at the end
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/png_parser.c')
-rw-r--r-- | libavcodec/png_parser.c | 2 |
1 files changed, 0 insertions, 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; |