[FFmpeg-cvslog] pngdec: Fix interlaced PAETH prediction

Michael Niedermayer git at videolan.org
Tue Sep 6 16:31:20 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Sep  6 16:22:38 2011 +0200| [bc6445f2dbd004565adda0c500754cc9ee151aed] | committer: Michael Niedermayer

pngdec: Fix interlaced PAETH prediction
Fixes Ticket161

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

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

 libavcodec/pngdec.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c
index 4fe2884..5abdb90 100644
--- a/libavcodec/pngdec.c
+++ b/libavcodec/pngdec.c
@@ -317,6 +317,7 @@ static void png_handle_row(PNGDecContext *s)
             }
             s->y++;
             if (s->y == s->height) {
+                memset(s->last_row, 0, s->row_size);
                 for(;;) {
                     if (s->pass == NB_PASSES - 1) {
                         s->state |= PNG_ALLIMAGE;



More information about the ffmpeg-cvslog mailing list