diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-09-06 16:22:38 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-09-06 16:22:38 +0200 |
commit | bc6445f2dbd004565adda0c500754cc9ee151aed (patch) | |
tree | f2c2c4d522605c4d24e8c353eba084e1a9f80559 /libavcodec/pngdec.c | |
parent | 2d4102fc13f7c754701156ef4403d02fa0a2cc82 (diff) | |
download | ffmpeg-bc6445f2dbd004565adda0c500754cc9ee151aed.tar.gz |
pngdec: Fix interlaced PAETH prediction
Fixes Ticket161
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/pngdec.c')
-rw-r--r-- | libavcodec/pngdec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c index 4fe288464a..5abdb90dee 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; |