Detect division by zero before it happens
Detect division by zero before it happens

Pointed-out-by: Drew Yao
Signed-off-by: Rémi Denis-Courmont <68811987a9c2c687836cbd0c9f0440d0fd65944b@videolan.org>

vlc-mirror/vlc,krichter722/vlc,xkfz007/vlc,vlc-mirror/vlc-2.1,xkfz007/vlc,shyamalschandra/vlc,vlc-mirror/vlc,shyamalschandra/vlc,krichter722/vlc,vlc-mirror/vlc-2.1,jomanmuk/vlc-2.2,jomanmuk/vlc-2.2,jomanmuk/vlc-2.1,vlc-mirror/vlc-2.1,vlc-mirror/vlc,jomanmuk/vlc-2.2,jomanmuk/vlc-2.2,jomanmuk/vlc-2.1,vlc-mirror/vlc,jomanmuk/vlc-2.2,vlc-mirror/vlc-2.1,jomanmuk/vlc-2.1,vlc-mirror/vlc-2.1,xkfz007/vlc,xkfz007/vlc,shyamalschandra/vlc,shyamalschandra/vlc,vlc-mirror/vlc,xkfz007/vlc,shyamalschandra/vlc,jomanmuk/vlc-2.1,krichter722/vlc,xkfz007/vlc,krichter722/vlc,xkfz007/vlc,krichter722/vlc,krichter722/vlc,vlc-mirror/vlc-2.1,jomanmuk/vlc-2.1,shyamalschandra/vlc,vlc-mirror/vlc,jomanmuk/vlc-2.1,jomanmuk/vlc-2.1,vlc-mirror/vlc-2.1,krichter722/vlc,shyamalschandra/vlc,vlc-mirror/vlc,jomanmuk/vlc-2.2,jomanmuk/vlc-2.2