zmbvdec: Check the buffer size for uncompressed data
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 11 Nov 2012 17:08:39 +0000 (18:08 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Tue, 7 Jan 2014 08:43:56 +0000 (09:43 +0100)
commitb81d804f2ac113a46d1736751401d78f998db56d
treed1530e0c59402023132c8d99717cc731eda3ef9d
parentf241d5aa1fa45d98c26accd0832c354e7ec64e5a
zmbvdec: Check the buffer size for uncompressed data

Also don't pointlessly set the buffer size to 1 after copying
one packet.

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 0d61f260010707f3028b818e8b24598e1a83d696)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/zmbv.c