avcodec/alsdec: Limit maximum channels to 512