proresdec: Properly make sure an index doesn't run past the limit
authorMartin Storsjö <martin@martin.st>
Thu, 12 Sep 2013 09:10:18 +0000 (12:10 +0300)
committerMartin Storsjö <martin@martin.st>
Mon, 16 Sep 2013 08:04:52 +0000 (11:04 +0300)
commitac9d159015a88aa2721b271875d18482f713f354
tree7411460dc0587108db233576645e8e1ec2c17977
parente90a6846c2c006fbebd00e1f2789f4a86fafacef
proresdec: Properly make sure an index doesn't run past the limit

If idx equaled num_coeffs - 1 on entry to the loop, the previous
check failed to break out of the loop.

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