summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-09-11 16:40:25 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-09-11 16:47:01 +0200
commit4a203b773702ea1989b1ad89eaeaf96a291873d8 (patch)
tree560f009c53da798c4fa8c628df271d76221a009e
parenta6153bde3dee9243a72f3093bc1f3f63beb8eb62 (diff)
avcodec/png_parser: Return the buffered data at the end
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/png_parser.c2
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;