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 14:10:52 +0000 (16:10 +0200)
commit60f1cc4a1ffcbf24acbb543988ceeaec76b70818
treecb901b280378c41c2f3c89311ef422b015952edd
parent94bb1ce882a12b6d7a1fa32715a68121b39ee838
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>
libavcodec/alsdec.c