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)
committerAnton Khirnov <anton@khirnov.net>
Tue, 5 May 2015 19:41:43 +0000 (21:41 +0200)
commit378ee3bad5b99e8f90864af9bc851590e0f64825
tree53b61e6059f338d74466f7e48877eee06850f34d
parent41a89cba6086de2bd24f9ec7e21200fa162505e9
alsdec: only adapt order for positive max_order

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

CC: libav-stable@libav.org
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
(cherry picked from commit 60f1cc4a1ffcbf24acbb543988ceeaec76b70818)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/alsdec.c