avcodec/aacps: move checks for valid length outside the stereo_interpolate dsp function