swscale: Fix an undefined behaviour
authorLuca Barbato <lu_zero@gentoo.org>
Thu, 1 May 2014 22:21:23 +0000 (00:21 +0200)
committerReinhard Tartler <siretart@tauware.de>
Sun, 1 Jun 2014 00:07:52 +0000 (20:07 -0400)
commit7fa72700298107fe756311ecb4dee5270ff12d35
tree803164cf511f53b483a7c7bbcab5996fa3043b34
parent65c3593792a9702d9e4135bba46b1ca186afed6c
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