alsdec: only adapt order for positive max_order
authorAndreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Wed, 22 Apr 2015 14:03:41 +0000 (16:03 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 23 Apr 2015 15:00:21 +0000 (17:00 +0200)
commit89b83042a9c5fc2a4b18dcfe7932918f6593cf2c
treeb8d02a84bd9bf26338afc33cf216b11b451b6e44
parentbb95df33a0d41087d469bebaf8be04f03dc3b397
alsdec: only adapt order for positive max_order

For max_order = 0 the clipping range is invalid. (amin = 2, amax = 1)

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 58d605ee9b3277289278dc40e022311f8e083833)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/alsdec.c