swscale: Fix an undefined behaviour
authorLuca Barbato <lu_zero@gentoo.org>
Thu, 1 May 2014 22:21:23 +0000 (00:21 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Sat, 3 May 2014 16:25:17 +0000 (18:25 +0200)
commit3a177a9cca924e097265b32f9282814f6b653e08
treec764e353dcdf587cbf9e24f55052777aa316864f
parent925c37874b617816b6f460c6f229c18b46548b46
swscale: Fix an undefined behaviour

Prevent a division by zero down the codepath.

Sample-Id: 00001721-google
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
libswscale/utils.c