rpza: limit the number of blocks to the total remaining blocks in the frame
authorAnton Khirnov <anton@khirnov.net>
Thu, 28 Nov 2013 09:54:35 +0000 (10:54 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Fri, 14 Feb 2014 10:31:35 +0000 (11:31 +0100)
commitd2a065437a96b5ab73f15362fe3d5cde3c61f160
treee58bd6c8791b6d6ddba0617ee3f52c862348aa5a
parent27f60e2b0b419066619c738b3c9b9376a83ed4b1
rpza: limit the number of blocks to the total remaining blocks in the frame

Fixes invalid writes.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
(cherry picked from commit 77bb0004bbe18f1498cfecdc68db5f10808b6599)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/rpza.c