rpza: Fix a buffer size check
authorMartin Storsjö <martin@martin.st>
Sat, 28 Sep 2013 22:24:20 +0000 (01:24 +0300)
committerLuca Barbato <lu_zero@gentoo.org>
Tue, 7 Jan 2014 08:43:58 +0000 (09:43 +0100)
commitcb4a101fbe2729f77d636c264b11789d251bfe84
treeb7cf64d72260f1a151b78877b03ee90de9627bc9
parentd3986f4f1baf8397c1f12154387c2c1950125d72
rpza: Fix a buffer size check

We read 2 bytes for 15 out of 16 pixels, therefore we need to
have at least 30 bytes, not 16.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
(cherry picked from commit 7ba0cedbfeff5671b264d1d7e90777057b5714c6)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
(cherry picked from commit f06e39fe6b272a11782c023c31eec43bfce3138d)
libavcodec/rpza.c