avrndec: calculate true_height only when used.
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 13 Nov 2012 21:02:46 +0000 (22:02 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 13 Nov 2012 21:03:21 +0000 (22:03 +0100)
commitb1191331363c444c0eaba0055cc7379221ddf8d7
tree6347f484584a55e34bdd5af71574112e1dd7643c
parent7373b3ad043cc3417d80c55ccdb620b08cd271bf
avrndec: calculate true_height only when used.

Fixes division by 0

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/avrndec.c