Sanitize input to opus_en/decoder_get_size.