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 14:51:46 +0000 (16:51 +0200)
commit58d605ee9b3277289278dc40e022311f8e083833
treef39b9109d7d8e2ed915760cea3d82498771226fd
parentc82e870c12b263efe8c1b850c5c289bea6cb45a6
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>
libavcodec/alsdec.c