[FFmpeg-cvslog] avcodec/png_parser: Return the buffered data at the end

Michael Niedermayer git at videolan.org
Thu Sep 11 16:54:32 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Sep 11 16:40:25 2014 +0200| [4a203b773702ea1989b1ad89eaeaf96a291873d8] | committer: Michael Niedermayer

avcodec/png_parser: Return the buffered data at the end

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4a203b773702ea1989b1ad89eaeaf96a291873d8
---

 libavcodec/png_parser.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/libavcodec/png_parser.c b/libavcodec/png_parser.c
index 530d5a0..74f2964 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;



More information about the ffmpeg-cvslog mailing list