svq3: Avoid a division by zero
authorMartin Storsjö <martin@martin.st>
Thu, 19 Sep 2013 12:58:59 +0000 (15:58 +0300)
committerMartin Storsjö <martin@martin.st>
Thu, 19 Sep 2013 19:45:16 +0000 (22:45 +0300)
commit601c2015bc16f0b281160292a6a760cbbbb0eacb
treecfd927d2fd28a5c97bb15f9ecbb29c440287c536
parent7a5a55722749a3ab77941914707277b147322cbe
svq3: Avoid a division by zero

If the height is zero, the decompression will probably end up
failing due to not fitting into the allocated buffer later
anyway, so this doesn't need any more elaborate check.

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