]> git.sesse.net Git - ffmpeg/commit
pngdec: Stop trying to decode once inflate returns Z_STREAM_END
authorMartin Storsjö <martin@martin.st>
Sat, 28 Sep 2013 21:12:04 +0000 (00:12 +0300)
committerMartin Storsjö <martin@martin.st>
Sun, 29 Sep 2013 17:01:03 +0000 (20:01 +0300)
commita81cad8f86d1feb7e4bfae29e43f3e994935a5c7
tree5f74ae94991586284076cb4185dfa0f04ed6eeab
parentc231987662194d009dd91bfc57c678e0e70ca161
pngdec: Stop trying to decode once inflate returns Z_STREAM_END

If the input buffer contains more data after the deflate stream,
the loop previously left running infinitely, with inflate returning
Z_STREAM_END.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
libavcodec/pngdec.c